Interface TypeDef<T>Internal

A type definition wrapper that preserves type information. Used to define and infer types in the type system.

const stringType = defineType<string>()
const numberType = defineType<number>()
interface TypeDef<T = any> {
    __phantom?: T;
}

Type Parameters

  • T = any

    The type to wrap (defaults to any)

Properties

Properties

__phantom?: T