Create a strict mode that enforces typed instance creation. Fails under scenarios such as:
- Coercion fails (
string -> number, or {} to Foo)
- There are extra properties or missing properties
- Creation of generic instances (only allow typed construction, ex
new Foo())
Create a strict mode that enforces typed instance creation. Fails under scenarios such as:
string->number, or{}toFoo)new Foo())