The idea is to have the ability to extract typings from a schema. For example:
import ow from 'ow';
const schema = ow.object.exact.shape({
id: ow.number,
name: ow.string
});
/**
Which is an equivalent to:
interface User {
id: number;
name: string;
}
*/
type User = ow.infer<typeof schema>;
The idea is to have the ability to extract typings from a schema. For example:
I can open a PR if that request is accepted ✌🏻