[F] getLibraryName
function getLibraryName( context, type, scope?): 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
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | TCGCContext | |
type | Type & object | |
scope? | string | typeof AllScopes | - |
Returns
Section titled “Returns”string
the library name for a typespec type