I have a TS property in quotes (not sure it's needed but works)
export class MyExample {
readonly 'escaped': String = null;
}
Interestingly, the default value is not added to the Polymer output. Even more surprising is that readOnly is.
Also, when I add @notify annotation, twc throws:
\twc\src\parsers\JSParser.js:225
config.annotations = usedAnnotations;
^
TypeError: Cannot set property 'annotations' of undefined
at \twc\src\parsers\JSParser.js:225:40
at String.replace (native)
at Module.JSParser [as constructor] (\twc\src\parsers\JSParser.js:41:294)
at new Module (E:\Piskorz\AppData\Roaming\npm\node_modules\twc\src\PolymerModule.js:95:28)
at DestroyableTransform._transform (\twc\src\index.js:56:36)
at DestroyableTransform.Transform._read (\twc\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (\twc\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:147:83)
at doWrite (\twc\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:347:64)
at writeOrBuffer (\twc\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:336:5)
at DestroyableTransform.Writable.write (\twc\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:274:11)
I have a TS property in quotes (not sure it's needed but works)
Interestingly, the default value is not added to the Polymer output. Even more surprising is that
readOnly
is.Also, when I add
@notify
annotation, twc throws: