mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
@@ -369,7 +369,7 @@ schema.path('name');
|
||||
schema.path('name', Number);
|
||||
schema.pathType('name');
|
||||
schema.plugin(function() {});
|
||||
schema.post('save', function(next: () => void, doc: IActor) {});
|
||||
schema.post('save', function(doc: IActor) {});
|
||||
schema.pre('save', function(next: () => void) {});
|
||||
schema.requiredPaths();
|
||||
schema.static('findByName', function(name: string, callback: () => void) {});
|
||||
|
||||
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