@univerjscorefunctionsComposeinterceptors

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


Function: composeInterceptors()

function composeInterceptors<T, C>(interceptors): (initValue, initContext) => Nullable<T>

A helper to compose a certain type of interceptors.

Type Parameters

Type Parameter
T
C

Parameters

ParameterType
interceptorsIInterceptor<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:51