Type alias InlineRuntimeType<T>

InlineRuntimeType<T>: T extends ReflectionClass<infer K> ? K : any

Merge dynamic runtime types with static types. In the type-system resolves as any, in runtime as the correct type.

const stringType = {kind: ReflectionKind.string};
type t = {a: InlineRuntimeType<typeof stringType>}

const value = 34;
type t = {a: InlineRuntimeType<typeof value>}

Type Parameters

Generated using TypeDoc