Skip to content
On this page

Type alias: Narrow<TType>

Narrow: <TType> TType extends Function ? TType : never | TType extends string | number | boolean | bigint ? TType : never | TType extends [] ? [] : never | { [K in keyof TType]: Narrow<TType[K]> }

Infers embedded primitive type of any type

Param

Type to infer

Example

ts
type Result = Narrow<['foo', 'bar', 1]>

Type parameters

Parameter
TType

Defined In

node_modules/.pnpm/abitype@0.7.1_typescript@4.9.5/node_modules/abitype/dist/index.d.ts:34


Generated using TypeDoc and typedoc-plugin-markdown