This library fully depends on vue-class-component.
npm i -S vue-property-decorator
There are 7 decorators:
is equivalent to
const s = Symbol'baz'const MyComponent = Vue
As you can see at
propB, the type can be inferred automatically when it's a simple type. For more complex types like enums you do need to specify it specifically.
Also this library needs to have
emitDecoratorMetadata set to
true for this to work.