@univerjscoreclassesInterceptormanager

@univerjs/core v0.5.0-beta.1Docs


Class: InterceptorManager<P>

Type Parameters

Type Parameter
P extends Record<string, IInterceptor<any, any>>

Constructors

new InterceptorManager()

new InterceptorManager<P>(interceptorPoints): InterceptorManager<P>

Parameters

ParameterType
interceptorPointsP

Returns

InterceptorManager<P>

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

ParameterType
nameIInterceptor<T, C>

Returns

Function

Parameters
ParameterType
initValueNullable<T>
initContextC
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

ParameterType
nameT
interceptorT

Returns

Function

Returns

boolean

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/interceptor.ts:98