Merge branch 'richardgong1987-master'

This commit is contained in:
Andy Hanson
2017-06-01 07:09:38 -07:00
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -41,3 +41,4 @@ node_modules
.vs
.vscode
yarn.lock
.idea
+13
View File
@@ -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;
}
/**