Handle simple lib file in the test case

This commit is contained in:
Sheetal Nandi 2019-04-17 16:43:10 -07:00
parent d5100bb95e
commit 2a29880c61
4 changed files with 25 additions and 28 deletions

View file

@ -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",
@ -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"
@ -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": {
@ -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"
]

View file

@ -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",
@ -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"
@ -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": {
@ -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"
]

View file

@ -0,0 +1,6 @@
interface PromiseConstructor {
new <T>(): Promise<T>;
}
declare var Promise: PromiseConstructor;
interface Promise<T> {
}

View file

@ -3,7 +3,6 @@
"target": "es5",
"declaration": true,
"outDir": "obj",
"incremental": true,
"lib": ["es5", "es2015.promise"]
"incremental": true
}
}