---
title: "NonComposite: type in Types, TypeShade API reference"
description: "NonComposite, a type in Types. Maps a composite key to never and passes every other key through."
url: https://typeshade.dev/api/noncomposite/
language: en
---

# `NonComposite`

Type in Types

Maps a composite key to never and passes every other key through.

`import type { NonComposite } from 'typeshade'`
`import type { NonComposite } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
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 73](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L73), at commit af54ddad5
