Guest User

Untitled

a guest
Dec 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. export namespace myModule {
  2. interface IRun {
  3. location: string;
  4. speed: number;
  5. }
  6.  
  7. type IRunHome = () => void;
  8. // ... many more interfaces
  9. }
  10.  
  11. import * as myModule from '../../../../path/to/my/myModule';
  12.  
  13. declare global {
  14. namespace myModule extends ????? {
  15.  
  16. }
  17. }
  18.  
  19. export function doRun(run: myModule.IRun) {
  20. // ... code
  21. }
  22.  
  23. declare global {
  24. namespace myModule {
  25. // Deconstruct????
  26. ...myModule
  27. }
  28. }
Add Comment
Please, Sign In to add comment