Guest User

Untitled

a guest
Jul 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. export as namespace MyModuleName;
  2.  
  3. export class Position {
  4. x: number;
  5. y: number;
  6.  
  7. public clone(): Position;
  8.  
  9. constructor(x: number, y: number);
  10. }
  11.  
  12. export class Size {
  13. width: number;
  14. height: number;
  15. }
  16.  
  17. export interface Drawable {
  18. draw(context: Context, cursor: Position): void;
  19. }
  20.  
  21. import * as MyModuleName from 'path/to/mymodulename/main.js'
  22.  
  23. Module not found: Error: Can't resolve 'path/to/mymodulename' in 'somewhere/in/project'
Add Comment
Please, Sign In to add comment