mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
merge overloads for errorCb
This commit is contained in:
Vendored
+4
-8
@@ -274,14 +274,10 @@ declare module "mongoose" {
|
||||
pathType(path: string): string;
|
||||
plugin(plugin: (schema: Schema, options?: Object) => void, options?: Object): Schema;
|
||||
|
||||
pre(method: string, fn: HookSyncCallback): Schema;
|
||||
pre(method: string, fn: HookSyncCallback, errorCb: HookErrorCallback): Schema;
|
||||
pre(method: string, isAsync: boolean, fn: HookAsyncCallback): Schema;
|
||||
pre(method: string, isAsync: boolean, fn: HookAsyncCallback, errorCb: HookErrorCallback): Schema;
|
||||
post(method: string, fn: HookSyncCallback): Schema;
|
||||
post(method: string, fn: HookSyncCallback, errorCb: HookErrorCallback): Schema;
|
||||
post(method: string, isAsync: boolean, fn: HookAsyncCallback): Schema;
|
||||
post(method: string, isAsync: boolean, fn: HookAsyncCallback, errorCb: HookErrorCallback): Schema;
|
||||
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;
|
||||
|
||||
requiredPaths(): string[];
|
||||
set(key: string, value: any): void;
|
||||
|
||||
Reference in New Issue
Block a user