mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
fix post function
This commit is contained in:
Vendored
+1
-2
@@ -276,8 +276,7 @@ declare module "mongoose" {
|
||||
|
||||
pre(method: string, fn: HookSyncCallback, errorCb?: HookErrorCallback): Schema;
|
||||
pre(method: string, isAsync: boolean, fn: HookAsyncCallback, errorCb?: HookErrorCallback): Schema;
|
||||
post(method: string, fn: HookSyncCallback, errorCb?: HookErrorCallback): Schema;
|
||||
post(method: string, isAsync: boolean, fn: HookAsyncCallback, errorCb?: HookErrorCallback): Schema;
|
||||
post(method: string, fn: (doc: Document, next?: HookNextFunction) => any ): Schema;
|
||||
|
||||
requiredPaths(): string[];
|
||||
set(key: string, value: any): void;
|
||||
|
||||
Reference in New Issue
Block a user