4 ms·
It would be nice if the runtime validation was an ecmascript feature designed in such a way that typescript could infer the types for them automatically... Such
by justinmchase 3y ago
It would be nice if the runtime validation was an ecmascript feature designed in such a way that typescript could infer the types for them automatically... Such as
schema Example { ... }
cosnt example: Example = new Example(unkonwnData)
Where a schema applied runtime validation based on declarative syntax and which typescript could use to derive a `type` from