Table of Contents

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

key string

Returns

TsIdentifier

EndpointType(string, IEndpoint, string?)

The name and module of a generated endpoint class.

TsIdentifier EndpointType(string key, IEndpoint endpoint, string? prefix = null)

Parameters

key string
endpoint IEndpoint
prefix string

Returns

TsIdentifier

Property(string)

The name of the getter exposing a child endpoint.

string Property(string key)

Parameters

key string

Returns

string

TypeFor(OpenApiSchema?)

The TypeScript type a schema maps to.

TsIdentifier TypeFor(OpenApiSchema? schema)

Parameters

schema OpenApiSchema

Returns

TsIdentifier