Table of Contents

Class Messages

Namespace
TypedRest.CodeGeneration.TypeScript
Assembly
TypedRest.CodeGeneration.TypeScript.dll

The GenerationMessages the TypeScript generator can report.

public static class Messages
Inheritance
object
Messages

Remarks

The TRCG1xx range is reserved for target language backends, so these never collide with the TRCG0xx diagnostics of the C# source generator.

Methods

ElementSchemaMismatch(string, string, string)

The element of a collection describes a different type than the collection itself, which TypeScript cannot express because TElementEndpoint is constrained to ElementEndpoint<TEntity>.

public static GenerationMessage ElementSchemaMismatch(string key, string collectionEntity, string elementEntity)

Parameters

key string
collectionEntity string
elementEntity string

Returns

GenerationMessage

InterfacesNotSupported()

TypeScript is structurally typed and TypedRest for TypeScript has no endpoint interfaces.

public static GenerationMessage InterfacesNotSupported()

Returns

GenerationMessage

LangVersionNotSupported()

The C# language version does not apply to TypeScript.

public static GenerationMessage LangVersionNotSupported()

Returns

GenerationMessage

PollingNotSupported(string, string)

TypedRest for TypeScript has no PollingEndpoint.

public static GenerationMessage PollingNotSupported(string key, string entity)

Parameters

key string
entity string

Returns

GenerationMessage

SseNotSupported(string)

TypedRest for TypeScript has no SseStreamingEndpoint.

public static GenerationMessage SseNotSupported(string key)

Parameters

key string

Returns

GenerationMessage

StreamingCollectionNotSupported(string)

TypedRest for TypeScript has no StreamingCollectionEndpoint.

public static GenerationMessage StreamingCollectionNotSupported(string key)

Parameters

key string

Returns

GenerationMessage

StreamingNotSupported(string)

TypedRest for TypeScript has no StreamingEndpoint.

public static GenerationMessage StreamingNotSupported(string key)

Parameters

key string

Returns

GenerationMessage