Skip to content

Type Alias: InterceptorHandler()<C, GF>

ts
type 
InterceptorHandler
<
C
,
GF
> = (
context
,
next
) => void |
Promise
<void>;

Defined in: packages/core/src/types/interceptor.ts:18

Type Parameters

Type ParameterDefault type
C extends CommandCommand
GF extends ClercFlagsDefinitionobject

Parameters

ParameterType
contextInterceptorContext<C, GF>
nextInterceptorNext

Returns

void | Promise<void>

在 MIT 许可证下发布