@univerjs/core v0.5.0-beta.1 • Docs
Class: InterceptorManager<P>
Type Parameters
Type Parameter |
---|
P extends Record <string , IInterceptor <any , any >> |
Constructors
new InterceptorManager()
new InterceptorManager<P>(interceptorPoints): InterceptorManager<P>
Parameters
Parameter | Type |
---|---|
interceptorPoints | P |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:88
Methods
dispose()
dispose(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:117
fetchThroughInterceptors()
fetchThroughInterceptors<T, C>(name): (initValue, initContext) => Nullable<T>
Type Parameters
Type Parameter |
---|
T |
C |
Parameters
Parameter | Type |
---|---|
name | IInterceptor <T , C > |
Returns
Function
Parameters
Parameter | Type |
---|---|
initValue | Nullable <T > |
initContext | C |
Returns
Nullable
<T
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:92
getInterceptPoints()
getInterceptPoints(): P
Returns
P
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:113
intercept()
intercept<T>(name, interceptor): () => boolean
Type Parameters
Type Parameter |
---|
T extends IInterceptor <any , any > |
Parameters
Parameter | Type |
---|---|
name | T |
interceptor | T |
Returns
Function
Returns
boolean
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:98