Search


Search something to see results

TypeOf

TypeOf: T extends Schema<infer U, any> ? U : never

Type Parameters

  • T

Schema

import * as x from 'unhoax'

const schema = x.object({ name: x.string })
x.TypeOf<typeof schema> // { name: string }