-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for emitting declaration files
- Loading branch information
Showing
18 changed files
with
148 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/*.js | ||
/*.d.ts | ||
/*.log | ||
*.js.map | ||
bundle.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
class Test { | ||
import dep = require('./sub/dep'); | ||
|
||
class Test extends dep { | ||
doSomething() { | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import dep = require('./sub/dep'); | ||
declare class Test extends dep { | ||
doSomething(): void; | ||
} | ||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Asset Size Chunks Chunk Names | ||
bundle.js 1.55 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 154 bytes [rendered] | ||
[0] ./.test/declarationOutput/app.ts 154 bytes {0} [built] | ||
Asset Size Chunks Chunk Names | ||
app.d.ts 110 bytes [emitted] | ||
sub/dep.d.ts 63 bytes [emitted] | ||
bundle.js 2.16 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 675 bytes [rendered] | ||
[0] ./.test/declarationOutput/app.ts 521 bytes {0} [built] | ||
[1] ./.test/declarationOutput/sub/dep.ts 154 bytes {0} [built] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare class Test { | ||
doSomething(): void; | ||
} | ||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import dep = require('./sub/dep'); | ||
declare class Test extends dep { | ||
doSomething(): void; | ||
} | ||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Asset Size Chunks Chunk Names | ||
bundle.js 1.55 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 154 bytes [rendered] | ||
[0] ./.test/declarationOutput/app.ts 154 bytes {0} [built] | ||
Asset Size Chunks Chunk Names | ||
app.d.ts 110 bytes [emitted] | ||
sub/dep.d.ts 63 bytes [emitted] | ||
bundle.js 2.16 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 675 bytes [rendered] | ||
[0] ./.test/declarationOutput/app.ts 521 bytes {0} [built] | ||
[1] ./.test/declarationOutput/sub/dep.ts 154 bytes {0} [built] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare class Test { | ||
doSomething(): void; | ||
} | ||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import dep = require('./sub/dep'); | ||
declare class Test extends dep { | ||
doSomething(): void; | ||
} | ||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Asset Size Chunks Chunk Names | ||
bundle.js 1.56 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 168 bytes [rendered] | ||
[0] ./.test/declarationOutput/app.ts 168 bytes {0} [built] | ||
Asset Size Chunks Chunk Names | ||
app.d.ts 110 bytes [emitted] | ||
sub/dep.d.ts 63 bytes [emitted] | ||
bundle.js 2.19 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 703 bytes [rendered] | ||
[0] ./.test/declarationOutput/app.ts 535 bytes {0} [built] | ||
[1] ./.test/declarationOutput/sub/dep.ts 168 bytes {0} [built] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare class Test { | ||
doSomething(): void; | ||
} | ||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
class Test { | ||
doSomething() { | ||
|
||
} | ||
} | ||
|
||
export = Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters