ArenaInterner Module
Functions and values
| Function or value |
Description
|
|
True when a resolved type is memoised by the interner to a single shared instance (primitives, literals, globalThis). Such a type must NOT be used as a `TypeAliasRemap` key: the remap substitutes the alias name wherever that resolved type occurs, so aliasing a shared instance (e.g. `type D1SessionBookmark = string`, `type Mode = "primary-only"`) would make *every* occurrence of that primitive/literal render as the alias name across the entire surface. Only nominal/structural alias bodies are safe to remap.
|
Full Usage:
prerenderFromGraph ctx interner
Parameters:
GeneratorContext
interner : ArenaInterner
|
Performs prerendering of all types in the graph - the series of operations are performed in topological order, and provides guarantees of passing in deep transient filled type graphs such as with solid-js. The costs may outweigh the benefits in this scenario. Performance costs are significant.
|
|
|