Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /src
  2. /test
  3. unittest.ts
  4. unittest.html
  5. main.ts
  6.  
  7. class Point {
  8. constructor(public x: number, public y: number) {
  9. }
  10. }
  11. export { Point };
  12.  
  13. import Point from "../main";
  14.  
  15. function basicTest() {
  16. let Point = new Point(10, 15);
  17. // ...
  18. }
  19.  
  20. basicTest();
  21.  
  22. <html>
  23. <meta charset="UTF-8">
  24. <head></head>
  25. <body>
  26. <script src="unittest.js" charset="utf-8"></script>
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement