Type Alias PayloadPlugin<TPayload>

PayloadPlugin: {
    build?: () => PayloadBuilder<TPayload>;
    jsonSchema?: object;
    schema: TPayload["schema"];
    template?: () => Partial<TPayload>;
    validate?: (payload: Payload) => Validator<Payload>;
    wrap?: (payload: Payload) => PayloadWrapper;
}

Type Parameters

Type declaration