woutervh- / typescript-is

MIT License
959 stars 35 forks source link

Feature request: Allow disallowSuperfluousObjectProperties as an option to AssertType decorator factory #102

Open sgpinkus opened 3 years ago

sgpinkus commented 3 years ago

It would be useful to be able to override tsconfig.json disallowSuperfluousObjectProperties value on a case by case basis in AssertType decorator factory: @AssertType({ disallowSuperfluousObjectProperties: true|false}). Currently I'm pretty sure this isn't supported (??).

If not possible currently, not sure if it's maybe a lot of work (the transformer code looks surprisingly complicated), but thought would ask.