UNPKG

create-broadcast-app

Version:

Create a NextGen TV broadcast app with one command

38 lines (30 loc) 647 B
import absoluteLoad from 'absoluteLoad'; interface MyType { foo: number; bar: boolean; baz?: { n: number }; } type MyObject = Pick<MyType, 'bar' | 'baz'>; @annotation class App { static foo: MyObject = { bar: true, baz: { n: 123 } }; n = App.foo.baz!.n; @propertyDecorator decorated = 5; users = absoluteLoad(); } function annotation(target: any) { target.annotated = true; } function propertyDecorator(target: any, key: string) { arguments[2].initializer = function () { return 42; }; } declare namespace MyNamespace { interface MyType { foo: string; bar: (n: number) => void; } } export default App;