NonComposite
Type in Types
Maps a composite key to never and passes every other key through.
import type { NonComposite } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
type NonComposite<K extends string> = K extends `vec${string}` | `mat${string}` ? never : K;Description
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.
Source
src/core/ir/node.ts, line 95, at commit 26de7be8