[F] getLibraryName
function getLibraryName(context, type): string
Get the library name of a property / parameter / operation / model / enum. Takes projections into account
Returns name in the following order of priority
- language emitter name, i.e. @clientName("csharpSpecificName", "csharp") => "csharpSpecificName"
- client name, i.e. @clientName(""clientName") => "clientName"
- deprecated projected name
- friendly name, i.e. @friendlyName("friendlyName") => "friendlyName"
- name in typespec
Parameters​
Parameter | Type | Description |
---|---|---|
context | TCGCContext | |
type | Type & object |
Returns​
string
the library name for a typespec type