fix post function

This commit is contained in:
frogcjn
2016-06-28 12:17:22 +08:00
parent 6dbc533cf0
commit 17ce7262df
+1 -2
View File
@@ -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;