Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Latest commit

 

History

History
8 lines (6 loc) · 546 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 546 Bytes

typegooseDiscriminatorRepro

minimum reproduction of issue with typegoose nested discriminators
npm i to install deps

Issue solved: requires ES6 as tsconfig target, ES5 transpiles arrow function to regular function. npm run es5 to see error thrown, npm run es6 for no errors.

documentation for nested discriminators here
used the example for [Class] & the passing nestedDiscriminators tests with minute changes (brevity, ? & ! added to class members)