Type Alias AroundDeleteFn
AroundDeleteFn: (
collection: string,
id: string,
next: (id: string) => Promise<void>,
) => Promise<void>
Type Declaration
- (
collection: string,
id: string,
next: (id: string) => Promise<void>,
): Promise<void> Parameters
- collection: string
- id: string
- next: (id: string) => Promise<void>
Returns Promise<void>
Around-delete hook signature. The hook receives the doc id plus a
nextcallback that performs (or further dispatches) the actual delete.