mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
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
This commit is contained in:
committed by
Andy
parent
b1831c5b91
commit
4546ce312b
2914
loopback/index.d.ts
vendored
Normal file
2914
loopback/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
20
loopback/loopback-test.ts
Normal file
20
loopback/loopback-test.ts
Normal 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
loopback/tsconfig.json
Normal file
20
loopback/tsconfig.json
Normal 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
loopback/tslint.json
Normal file
1
loopback/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user