Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component()
- class MyApp {
- server:Server;
- @Bind('name') name:string;
- @Event('foo') fooFn:Function;
- @Inject()
- constructor(@parent server:Server) {}
- greet():string {}
- }
- function MyApp() {}
- MyApp.properties = {
- 'server': { is: Server },
- 'name': { is:string,
- annotate: [new Bind('name']},
- 'fooFn': { is:Function,
- annotate:[new Event('foo')]}
- }
- MyApp.annotate = [
- new Component(),
- new Inject()
- ];
- MyApp.parameters = [
- {is:Server, annotate:[parent]}
- ];
- MyApp.prototype.greet = function() {}
- MyApp.prototype.greet.returns = string;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement