* 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
This commit is contained in:
Andres David Jimenez
2017-01-06 17:18:33 -08:00
committed by Andy
parent b1831c5b91
commit 4546ce312b
4 changed files with 2955 additions and 0 deletions
+2914
View File
File diff suppressed because it is too large Load Diff
+20
View File
@@ -0,0 +1,20 @@
/// <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
};
}
}
+20
View File
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"loopback-test.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }