DefinitelyTyped/loopback/loopback-test.ts
Andres David Jimenez 4546ce312b Loopback (#13740)
* beta typed for loopback

* loopback typings

* fix name test in tsconfig

* test loopback

* normalized class

* loopback typings

* loopback typings fix interface and lint

* loopback typings fix interface and lint function type
2017-01-06 17:18:33 -08:00

20 lines
419 B
TypeScript

/// <reference path="index.d.ts" />
import * as loopback from 'loopback';
import * as cookieParser from 'cookie-parser';
class Server {
app: loopback.LoopBackApplication;
static boostrap(): Server {
return new Server();
}
constructor() {
this.app = loopback();
this.app.use(cookieParser());
this.app.start = function() {
// start the web server
};
}
}