Version: dev

emit_esm_string

Stable function · Document I/O

Tier: stable · Kind: function · Topic: Document I/O

JuliaTypeScriptPythonRustGo
not exportedemitEsmStringemit_esm_stringnot exportednot exported

Julia

Julia does not export this function.

TypeScript

function emitEsmString(doc: unknown): string

Canonical byte serialization of an emitted document (esm-spec §9.6.4 rule 5): 2-space indent, object keys sorted lexicographically (UTF-8 byte order) EXCEPT the entries of an expression_templates object, which preserve their authored-first / materialized-sorted order. The cross-binding byte-identity surface for the Option-B emitted form and the target of the emitted.esm goldens. Mirrors the Julia reference emit_esm_string.

Source

Python

emit_esm_string(doc: Any) -> str

Canonical byte serialization of an emitted document (esm-spec §9.6.4 rule 5): 2-space indent, object keys sorted lexicographically EXCEPT the entries of an expression_templates object, which preserve their authored-first / materialized-sorted order. The cross-binding byte-identity surface for the Option-B emitted form and the target of the emitted.esm goldens.

Source

Rust

Rust does not export this function.

Go

Go does not export this function.