Interface INamingStrategy
- Namespace
- TypedRest.CodeGeneration.TypeScript
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
Decides what the types and members of a generated TypeScript client are called.
public interface INamingStrategy
Methods
DtoType(string)
The name and module of a generated DTO type.
TsIdentifier DtoType(string key)
Parameters
keystring
Returns
EndpointType(string, IEndpoint, string?)
The name and module of a generated endpoint class.
TsIdentifier EndpointType(string key, IEndpoint endpoint, string? prefix = null)
Parameters
Returns
Property(string)
The name of the getter exposing a child endpoint.
string Property(string key)
Parameters
keystring
Returns
TypeFor(OpenApiSchema?)
The TypeScript type a schema maps to.
TsIdentifier TypeFor(OpenApiSchema? schema)
Parameters
schemaOpenApiSchema