---
title: "Rule 1.1: Introduction, a TypeShade design rule"
description: "Rule 1.1 of the TypeShade language design, in Introduction. A \"use typeshade\" program must mean what this document defines."
url: https://typeshade.dev/reference/rules/1-1/
language: en
---

# Rule 1.1

Chapter 1, Introduction Test

A `"use typeshade"` program must mean what this document defines. A form borrowed from ECMAScript means what ECMAScript gives it, and a form borrowed from WGSL means what WGSL gives it, unless a rule of this document gives it another meaning and records the difference and its reason. The WGSL the compiler emits must be a program WGSL accepts, and must compute that meaning.

The rule text and the parts under it are the compiler's own English, as the design document writes them.

## Rationale

TypeShade is a language of its own that borrows how an author writes from TypeScript and what the surface can express from WGSL. The source’s meaning is the default because an author reads a borrowed form by what it means there; a difference is allowed where it serves the GPU, and it is written down where the author can find it.

## Derives from

`changes/0100-typescript-meaning.md` (section 1, the principle); [WGSL Module](https://gpuweb.github.io/gpuweb/wgsl/#wgsl-module) and [Introduction](https://gpuweb.github.io/gpuweb/wgsl/#intro) for the emitted program.

## How it is verified

Checked by a test. A test, a gate script or a CI workflow names this rule, and the traceability check fails when a file listed below stops naming it.

Where the rule says the compiler enforces it:

the compile gate (`scripts/compile-gate.ts`), which hands every registered example to Tint; the open units of `docs/typeshade-plan.md` are listed in Appendix B.

The files that verify it at commit af54ddad5, each at the first line that names the rule:

- [`scripts/compile-gate.ts:172`](https://github.com/typeshade/typeshade/blob/af54ddad5/scripts/compile-gate.ts#L172)

## See also

- [Rule 1.2](https://typeshade.dev/reference/rules/1-2/) Code only
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

- [`docs/language-design.md:36`](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/language-design.md#L36) (the design document)
- [`reqs/rules/RULE-0101.md`](https://github.com/typeshade/typeshade/blob/af54ddad5/reqs/rules/RULE-0101.md) (its traceability item)
