@oneplatform/plugin-sdk / HookResult
Interface: HookResult\<S>¶
Defined in: packages/plugin-sdk/src/types/hooks.ts:229
The return type of a hook function. To modify the data flowing through the stage, return a new payload. To pass data through unmodified, return the input payload unchanged. Returning null from an advisory hook is equivalent to returning the input payload.
Type Parameters¶
S¶
S extends HookStage = HookStage
Properties¶
data¶
data:
Sextends keyofHookPayloadDataMap?HookPayloadDataMap[S] :Record\<string,unknown>
Defined in: packages/plugin-sdk/src/types/hooks.ts:231
The (possibly modified) data to pass to the next hook or to the stage itself.