alge
alge copied to clipboard
decoder return type should forbid excess properties
Screenshot
Description
size2 should not be allowed because it is not a known property. (Notice size is not required because it has a default).
Oh darn, right, this is not possible currently:
- https://github.com/microsoft/TypeScript/issues/241
- https://stackoverflow.com/questions/63258306/how-to-force-typescript-excess-property-check-on-function-return-value
- https://github.com/microsoft/TypeScript/pull/40311