ElemKey
Type in Types
Element key of a vector key; identity for scalars.
import type { ElemKey } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
type ElemKey<K extends string> = K extends `vec${number}<${infer E}>` ? E : K;Source
src/core/ir/types.ts, line 899, at commit 26de7be8