Skip to content

Commit

Permalink
Handle simple lib file in the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Apr 17, 2019
1 parent d5100bb commit 2a29880
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 28 deletions.
Expand Up @@ -30,13 +30,9 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex"
{
"program": {
"fileInfos": {
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.es2015.promise.d.ts": {
"version": "/lib/lib.es2015.promise.d.ts",
"signature": "/lib/lib.es2015.promise.d.ts"
"/lib/lib.d.ts": {
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/bar.ts": {
"version": "747071916",
Expand All @@ -46,6 +42,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex"
"version": "-21659820217",
"signature": "-40032907372"
},
"/src/global.d.ts": {
"version": "-9780226215",
"signature": "-9780226215"
},
"/src/lazyindex.ts": {
"version": "-6956449754",
"signature": "-6224542381"
Expand All @@ -60,10 +60,6 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex"
"declaration": true,
"outDir": "/src/obj",
"incremental": true,
"lib": [
"lib.es5.d.ts",
"lib.es2015.promise.d.ts"
],
"configFilePath": "/src/tsconfig.json"
},
"referencedMap": {
Expand All @@ -85,10 +81,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex"
]
},
"semanticDiagnosticsPerFile": [
"/lib/lib.es2015.promise.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.d.ts",
"/src/bar.ts",
"/src/bundling.ts",
"/src/global.d.ts",
"/src/index.ts",
"/src/lazyindex.ts"
]
Expand Down
Expand Up @@ -68,13 +68,9 @@ exports.bar = bar_1.default;
{
"program": {
"fileInfos": {
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.es2015.promise.d.ts": {
"version": "/lib/lib.es2015.promise.d.ts",
"signature": "/lib/lib.es2015.promise.d.ts"
"/lib/lib.d.ts": {
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/bar.ts": {
"version": "5936740878",
Expand All @@ -84,6 +80,10 @@ exports.bar = bar_1.default;
"version": "-21659820217",
"signature": "-40032907372"
},
"/src/global.d.ts": {
"version": "-9780226215",
"signature": "-9780226215"
},
"/src/lazyindex.ts": {
"version": "-6956449754",
"signature": "-6224542381"
Expand All @@ -98,10 +98,6 @@ exports.bar = bar_1.default;
"declaration": true,
"outDir": "/src/obj",
"incremental": true,
"lib": [
"lib.es5.d.ts",
"lib.es2015.promise.d.ts"
],
"configFilePath": "/src/tsconfig.json"
},
"referencedMap": {
Expand All @@ -123,10 +119,10 @@ exports.bar = bar_1.default;
]
},
"semanticDiagnosticsPerFile": [
"/lib/lib.es2015.promise.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.d.ts",
"/src/bar.ts",
"/src/bundling.ts",
"/src/global.d.ts",
"/src/index.ts",
"/src/lazyindex.ts"
]
Expand Down
6 changes: 6 additions & 0 deletions tests/projects/inferredTypeFromTransitiveModule/global.d.ts
@@ -0,0 +1,6 @@
interface PromiseConstructor {
new <T>(): Promise<T>;
}
declare var Promise: PromiseConstructor;
interface Promise<T> {
}
Expand Up @@ -3,7 +3,6 @@
"target": "es5",
"declaration": true,
"outDir": "obj",
"incremental": true,
"lib": ["es5", "es2015.promise"]
"incremental": true
}
}

0 comments on commit 2a29880

Please sign in to comment.