czehik / a

Library for annotating ES5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a

Annotator for ES5. Lets you write ES5 with TypeScript-like annotations.

Disclaimer

This library is super experimental. Like winter, changes are coming.

Use

This JS code:

a.RouteConfig([
  { path: '/' }
]).
View({
  template: '...'
}).
for(MyController)
function MyController () {}

Is the same as this TypeScript code:

@RouteConfig([
  { path: '/' }
])
@View({
  template: '...'
})
class MyController {}

License

Apache 2.0

ezoic increase your site revenue

About

Library for annotating ES5


Languages

Language:JavaScript 100.0%