Created
August 26, 2016 08:23
-
-
Save pellejacobs/04e99fe7688065d408524b3ee067dd72 to your computer and use it in GitHub Desktop.
Typings bundling example
This file contains hidden or 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
// Generated by typings | |
// Source: submodule.d.ts | |
declare module '~my-main-module/submodule' { | |
export interface submoduleInterface { | |
someProp: number | |
} | |
} | |
declare module 'my-main-module/submodule' { | |
export * from '~my-main-module/submodule'; | |
} | |
// Generated by typings | |
// Source: index.d.ts | |
declare module '~my-main-module/index' { | |
import * as submodule from '~my-main-module/submodule' | |
export interface mainInterface { | |
someProp: number | |
} | |
} | |
declare module 'my-main-module/index' { | |
export * from '~my-main-module/index'; | |
} | |
declare module 'my-main-module' { | |
export * from '~my-main-module/index'; | |
} |
This file contains hidden or 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
import * as submodule from './submodule' | |
export interface mainInterface { | |
someProp: number | |
} |
This file contains hidden or 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
export interface submoduleInterface { | |
someProp: number | |
} |
This file contains hidden or 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
{ | |
"name": "my-main-module", | |
"main": "index.d.ts", | |
"dependencies": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment