Closed sundaycrafts closed 3 years ago
I think that could be useful.
@sindresorhus Regarding the expected API. Does something like that is good for you?
import ow, { Infer } from 'ow';
const schema = ow.object.exactShape({
name: ow.string
});
type Schema = Infer<typeof schema>;
I'm sorry if it had already discussed but I thought it would be great if ow has a function to retrieve the type ow validated like a Superstruct's infer.
Is it already planned? Or maybe it is not this project's goal🤔