I'm trying to use the @email decorator with all the latest bits:
@email
email: string;
This results in the following error:
aurelia-logging-console.js:54 ERROR [app-router] Error: TypeError: Cannot set property 'configurable' of undefined
at addRule (http://localhost:52058/jspm_packages/npm/aurelia-validatejs@0.5.0/aurelia-validatejs.js:234:29)
at base (http://localhost:52058/jspm_packages/npm/aurelia-validatejs@0.5.0/aurelia-validatejs.js:220:14)
at email (http://localhost:52058/jspm_packages/npm/aurelia-validatejs@0.5.0/aurelia-validatejs.js:258:12)
I'm trying to use the
@email
decorator with all the latest bits:This results in the following error:
Traced it to this line: https://github.com/aurelia/validatejs/blob/master/src/base-decorator.js#L26
The descriptor seems optional (using TypeScript), what exactly does it mean and how is it used?