Checks whether a name can be emitted as a bare TypeScript identifier.
Names that fail this check (for example the OSM-style openGeoDB:postal_codes
returned by some specs) must be emitted as quoted members instead of being
renamed, since the wire format depends on the original key.
Parameters
name: string
The name to check
Returns boolean
true if the name is a valid identifier, false otherwise
Checks whether a name can be emitted as a bare TypeScript identifier. Names that fail this check (for example the OSM-style
openGeoDB:postal_codesreturned by some specs) must be emitted as quoted members instead of being renamed, since the wire format depends on the original key.