Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export namespace myModule {
- interface IRun {
- location: string;
- speed: number;
- }
- type IRunHome = () => void;
- // ... many more interfaces
- }
- import * as myModule from '../../../../path/to/my/myModule';
- declare global {
- namespace myModule extends ????? {
- }
- }
- export function doRun(run: myModule.IRun) {
- // ... code
- }
- declare global {
- namespace myModule {
- // Deconstruct????
- ...myModule
- }
- }
Add Comment
Please, Sign In to add comment