API Reference
@univerjs
@univerjs/core
classes
Interceptormanager

@univerjs/core v0.1.17Docs


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

submodules/univer/packages/core/src/common/interceptor.ts:73 (opens in a new tab)

Methods

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

submodules/univer/packages/core/src/common/interceptor.ts:77 (opens in a new tab)


getInterceptPoints()

getInterceptPoints(): P

Returns

P

Defined in

submodules/univer/packages/core/src/common/interceptor.ts:98 (opens in a new tab)


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

submodules/univer/packages/core/src/common/interceptor.ts:83 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.