Maps SingletonDeclaration as TypeScript const and literal type (super interface is ignored).
- If the singleton doesn't declare any value, uses its name as literal.
- If the singleton declares a single value, uses it content as literal.
- If the singleton declared multiple values, uses them as literal object.
Maps
SingletonDeclaration
as TypeScriptconst
and literal type (super interface is ignored).- If the singleton doesn't declare any value, uses its name as literal. - If the singleton declares a single value, uses it content as literal. - If the singleton declared multiple values, uses them as literal object.