Search


Search something to see results

InputOf

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

Type Parameters

  • T

Schema

import * as x from 'unhoax'

// reminder: type Schema<T, Input = unknown> = …
declare const stringFromNumber = Schema<string, number>

x.InputOf<typeof schema> // number