@univerjs/core v0.5.0-beta.1 • Docs
Class: AsyncInterceptorManager<P>
Type Parameters
Type Parameter |
---|
P extends Record <string , IAsyncInterceptor <any , any >> |
Constructors
new AsyncInterceptorManager()
new AsyncInterceptorManager<P>(asyncInterceptorPoints): AsyncInterceptorManager<P>
Parameters
Parameter | Type |
---|---|
asyncInterceptorPoints | P |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:181
Methods
dispose()
dispose(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:210
fetchThroughAsyncInterceptors()
fetchThroughAsyncInterceptors<T, C>(name): (initialValue, context) => Promise<Nullable<T>>
Type Parameters
Type Parameter |
---|
T |
C |
Parameters
Parameter | Type |
---|---|
name | IAsyncInterceptor <T , C > |
Returns
Function
Parameters
Parameter | Type |
---|---|
initialValue | Nullable <T > |
context | C |
Returns
Promise
<Nullable
<T
>>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:185
getInterceptPoints()
getInterceptPoints(): P
Returns
P
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:206
interceptAsync()
interceptAsync<T>(name, interceptor): Promise<() => boolean>
Type Parameters
Type Parameter |
---|
T extends IAsyncInterceptor <any , any > |
Parameters
Parameter | Type |
---|---|
name | T |
interceptor | T |
Returns
Promise
<() => boolean
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:191