Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @Component()
  2. class MyApp {
  3. server:Server;
  4. @Bind('name') name:string;
  5. @Event('foo') fooFn:Function;
  6. @Inject()
  7. constructor(@parent server:Server) {}
  8. greet():string {}
  9. }
  10.  
  11. function MyApp() {}
  12. MyApp.properties = {
  13. 'server': { is: Server },
  14. 'name': { is:string,
  15. annotate: [new Bind('name']},
  16. 'fooFn': { is:Function,
  17. annotate:[new Event('foo')]}
  18. }
  19. MyApp.annotate = [
  20. new Component(),
  21. new Inject()
  22. ];
  23. MyApp.parameters = [
  24. {is:Server, annotate:[parent]}
  25. ];
  26. MyApp.prototype.greet = function() {}
  27. MyApp.prototype.greet.returns = string;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement