|
|
|
|
|
by IggleSniggle
1071 days ago
|
|
Just use a run-type transformer like typia, hooked right into typescript-compile. Get your runtime type validators generated from nothing but the typescript definitions. Alternatively, use a runtime validator the provides good type inference out of the box so you're still only declaring your types once. |
|