Skip to content

Commit 21e67e8

Browse files
committed
WIP: initial commit
1 parent 462fcc4 commit 21e67e8

File tree

27 files changed

+3603
-0
lines changed

27 files changed

+3603
-0
lines changed

lib/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var a = require('example-typescript-a');
2+
var num = a.foo.a;
3+
var str = a.foo.b;
4+
console.log(num, str);
5+
var bar = require("example-typescript-a/dist/bar");
6+
console.log(bar.bar);
7+
var bas = require("example-typescript-a/dist/bas");
8+
console.log(bas.bas);
9+
var b = require("example-typescript-b");
10+
b.utils.log('hey');
11+
var shouldNotBeAny = b.momentjs;

lib/main.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import a = require('example-typescript-a');
2+
3+
var num = a.foo.a;
4+
var str = a.foo.b;
5+
console.log(num,str)
6+
7+
import bar = require("example-typescript-a/dist/bar");
8+
console.log(bar.bar);
9+
10+
import bas = require("example-typescript-a/dist/bas");
11+
console.log(bas.bas);
12+
13+
import b = require("example-typescript-b");
14+
b.utils.log('hey');
15+
var shouldNotBeAny = b.momentjs;

lib/tsconfig.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": "1.4.1",
3+
"compilerOptions": {
4+
"target": "es5",
5+
"module": "commonjs",
6+
"declaration": false,
7+
"noImplicitAny": false,
8+
"removeComments": true,
9+
"noLib": false
10+
},
11+
"package": "../package.json",
12+
"filesGlob": [
13+
"./**/*.ts",
14+
"!./node_modules/**/*.ts"
15+
],
16+
"files": [
17+
"./main.ts",
18+
"./typings/node/node.d.ts",
19+
"./typings/tsd.d.ts"
20+
]
21+
}

lib/tsd.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "v4",
3+
"repo": "borisyankov/DefinitelyTyped",
4+
"ref": "master",
5+
"path": "typings",
6+
"bundle": "typings/tsd.d.ts",
7+
"installed": {
8+
"node/node.d.ts": {
9+
"commit": "e57df787f4e11601625d7e1c1b2ee351b97a18a1"
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)