Logo Xantham

ExportNames Module

Functions and values

Function or value Description

nameExports

Full Usage: nameExports

Returns: Pass<ShapeModel>

Names every type-like export before anything refers to one, so later passes see references as `FsNamed` instead of expansions. Keys are type ids; when two exports share a declared type the first in harvest order names it and `shape-aliases` abbreviates the rest. Two exports of two *different* types under one name are two declarations, and F# admits one name per declaration: the later takes the numeric suffix `shape-anonymous` uses for the same clash. `@cloudflare/workers-types` declares `WorkflowSleepDuration` twice, once in global scope and once in an ambient module of the same file.

Returns: Pass<ShapeModel>

Type something to start searching.