arktype icon indicating copy to clipboard operation
arktype copied to clipboard

Add utility functions for accepting the the input/output of a type without validation

Open ssalbdivad opened this issue 1 year ago • 0 comments

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.

ssalbdivad avatar May 07 '23 00:05 ssalbdivad