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. TRCG101 to TRCG104 reported reactive endpoints degrading to non-reactive ones, back when TypedRest for TypeScript had none. They are retired rather than reused, so that existing suppressions keep meaning what they did.

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

SerializerNotSupported()

TypedRest for TypeScript deserializes with JSON.parse() and a cast, so there is no serializer to pick.

public static GenerationMessage SerializerNotSupported()

Returns

GenerationMessage