Skip to main content

ts_ident

Function ts_ident 

Source
pub fn ts_ident(name: &str) -> String
Expand description

The TypeScript spelling of a user identifier in a binding or reference position. Defined in bynk_check::emitted_names so the language server’s inline values (#2476) name the same variable the emitter declares. The TypeScript spelling of a user identifier in a binding or reference position (params, locals, function names, import names). Bynk identifiers that are illegal as TS binding names — the JS reserved words plus the strict-mode/module sets (emitted modules are always strict ESM) — and names the emitter itself introduces alongside user bindings (deps) are renamed into the generated-name namespace (__id_<name>), which the parser keeps free of user identifiers. Property/field names never pass through here: reserved words are legal there, and record field names are wire format.