NonComposite
타입, 타입 분류
Maps a composite key to never and passes every other key through.
import type { NonComposite } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type NonComposite<K extends string> = K extends `vec${string}` | `mat${string}` ? never : K;설명
Used as the this: bound of the scalar-only methods, so a vector receiver is rejected
while a scalar receiver, and the widened ReadonlyNode<string>, stay usable. string is
not a union, so the conditional does not distribute and passes it through unchanged.
소스
src/core/ir/node.ts, 95행, 커밋 c66579bf 기준