# CheckSpec

type in `@dioramajs/diorama/effects`

```ts
import type { CheckSpec } from '@dioramajs/diorama/effects'
```

Makes reserved names fail at the call site.

```ts
type CheckSpec<P> = { [K in keyof P]: K extends ReservedAttr ? `"${K & string}" is a built-in input or reserved name, pick another` : K extends keyof InputUniforms ? P[K] extends ChoiceParam<string> ? P[K] : `"${K & string}" is a built-in input or reserved name, pick another` : K extends OptionName ? `"${K & string}" is an option: effect({}, { ${K & string} }, setup)` : P[K] }
```

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/types.ts#L625).
