forked from TypeStrong/dts-bundle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow ambient module declarations. allow multiple. fixes TypeStrong#72
- Loading branch information
Showing
9 changed files
with
137 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Dependencies for this module: | ||
// ambient1.d.ts | ||
|
||
declare module 'foo-mx' { | ||
export { MyInterface } from 'mymodule'; | ||
export { Sup1 } from 'foo-mx/ambient1'; | ||
export { Sup2 } from 'foo-mx/ambient2'; | ||
} | ||
|
||
declare module 'foo-mx/ambient1' { | ||
module 'mymodule' { | ||
interface MyInterface { | ||
prop1: string; | ||
} | ||
} | ||
export interface Sup1 { | ||
} | ||
} | ||
|
||
declare module 'foo-mx/ambient2' { | ||
module 'mymodule' { | ||
interface MyInterface { | ||
prop2: string; | ||
} | ||
} | ||
export interface Sup2 { | ||
} | ||
} | ||
|
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,10 @@ | ||
|
||
/// <reference path="./mymodule.d.ts" /> | ||
|
||
declare module 'mymodule' { | ||
interface MyInterface { | ||
prop1: string | ||
} | ||
} | ||
|
||
export interface Sup1 {} |
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,10 @@ | ||
|
||
/// <reference path="./mymodule.d.ts" /> | ||
|
||
declare module 'mymodule' { | ||
interface MyInterface { | ||
prop2: string | ||
} | ||
} | ||
|
||
export interface Sup2 {} |
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,3 @@ | ||
export { MyInterface } from 'mymodule'; | ||
export { Sup1 } from './ambient1'; | ||
export { Sup2 } from './ambient2'; |
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,6 @@ | ||
|
||
declare module 'mymodule' { | ||
export interface MyInterface { | ||
prop0: string | ||
} | ||
} |
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