Skip to content

MongoosePostHookCB

@tsed/mongoose

Usage

typescript
import { MongoosePostHookCB } from "@tsed/orm/mongoose/src/types/interfaces/MongooseSchemaOptions";

See /packages/orm/mongoose/src/types/interfaces/MongooseSchemaOptions.ts.

Overview

ts
type MongoosePostHookCB<T = any> = ((doc: T | MongooseDocument<T>, error: Error, next: MongooseNextCB) => void) | ((doc: T | MongooseDocument<T>, error: Error) => Promise<void> | void) | ((doc: T | MongooseDocument<T>, next: MongooseNextCB) => void) | MongooseHookPromised;

Released under the MIT License.