arktype
arktype copied to clipboard
Add utility functions for accepting the the input/output of a type without validation
This would be something like:
const user = type({
name: "string",
age: "number",
});
const data = user.from({});
// ^? would give hints for user
If the type is a morph, we'd need to either accept the output, or accept the input and just run the morphs.