Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validation: make marker optional (#1690)
To make the type checker happy when crating instances of the types. Currently the following will result in an error (`Type 'string' is not assignable to type 'string & MinLen<1> & MaxLen<2>'. Type 'string' is not assignable to type 'MinLen<1>'.`): ```ts interface MyType { field: string & MinLen<1> & MaxLen<2>; } const x: MyType = { field: "a" }; ```
- Loading branch information