Rule 13.6
On this page

Rule 13.6

Chapter 13, Change control Test

A new author-facing name must be added only by its source: a WGSL name by citing the specification section that declares it, and an ECMAScript name by citing the section of ECMA-262, or the declaration of TypeScript’s standard library, that defines it. A TypeShade extension, including a new type of the f64 family, must be added by Rule 9.7, with the rationale in §9 and, for the f64 family, in Rule 4.4.

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

Rationale

Derives from

the comment above TYPESHADE_EXTENSIONS in surface-names.test.ts, which names §9 and this section; changes/0100-typescript-meaning.md (section 2) for the ECMAScript citation.

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:

surface-names.test.ts, which accepts an ECMAScript name from Math, console, Array.prototype, Map and Set; the test is narrower than the rule and grows with each unit of docs/typeshade-plan.md that adds a name.

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

See also

Source

The rule at commit af54ddad5:

Edit this page Report a problem