Closed nesro closed 2 months ago
Fixes https://github.com/typestack/class-transformer/issues/737 as it is a small fix, but very useful and needed. It allows subTypes.name to be a number as well - useful when discriminating with a version property for example.
Update index.md
develop
npm run prettier:check
npm run lint:check
I did not edit the documentation as it doesn't mention the string type so it being a number is fine.
fixes #737
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
Fixes https://github.com/typestack/class-transformer/issues/737 as it is a small fix, but very useful and needed. It allows subTypes.name to be a number as well - useful when discriminating with a version property for example.
Checklist
Update index.md
)develop
)npm run prettier:check
passesnpm run lint:check
passesI did not edit the documentation as it doesn't mention the string type so it being a number is fine.
Fixes
fixes #737