mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge branch 'richardgong1987-master'
This commit is contained in:
@@ -41,3 +41,4 @@ node_modules
|
||||
.vs
|
||||
.vscode
|
||||
yarn.lock
|
||||
.idea
|
||||
|
||||
Vendored
+13
@@ -11,6 +11,7 @@
|
||||
************************************************/
|
||||
|
||||
import * as core from "express-serve-static-core";
|
||||
import { NextFunction } from "express";
|
||||
|
||||
declare function l(): l.LoopBackApplication;
|
||||
declare namespace l {
|
||||
@@ -886,6 +887,18 @@ declare namespace l {
|
||||
* See [Setting up a custom model](docs.strongloop.com/display/LB/Extending+built-in+models#Extendingbuilt-inmodels-Settingupacustommodel)
|
||||
*/
|
||||
static setup(): void;
|
||||
|
||||
/**
|
||||
* loopback 3.x Remote hooks
|
||||
* http://loopback.io/doc/en/lb3/Remote-hooks.html
|
||||
* @param method
|
||||
* @param backback
|
||||
*/
|
||||
beforeRemote(method: string, callback: (ctx: Context, modelInstanceOrNext: Model | NextFunction, next?: NextFunction) => void): void;
|
||||
|
||||
afterRemote(method: string, callback: (ctx: Context, modelInstanceOrNext: Model | NextFunction, next?: NextFunction) => void): void;
|
||||
|
||||
afterRemoteError(method: string, callback: NextFunction): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user