SwizzleKey
타입, 타입 분류
The key of v.swizzle(S) for a vector key K: the element scalar when S has one character, otherwise vecN<elem> with N the length of S.
import type { SwizzleKey } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type SwizzleKey<K extends string, S extends string> = StrLen<S> extends 1 ? ElemKey<K> : `vec${StrLen<S> & number}<${ElemKey<K>}>`;소스
src/core/ir/node.ts, 329행, 커밋 c66579bf 기준