Class Messages
- Namespace
- TypedRest.CodeGeneration.TypeScript
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
The GenerationMessages the TypeScript generator can report.
public static class Messages
- Inheritance
-
objectMessages
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
Returns
InterfacesNotSupported()
TypeScript is structurally typed and TypedRest for TypeScript has no endpoint interfaces.
public static GenerationMessage InterfacesNotSupported()
Returns
LangVersionNotSupported()
The C# language version does not apply to TypeScript.
public static GenerationMessage LangVersionNotSupported()
Returns
PollingNotSupported(string, string)
TypedRest for TypeScript has no PollingEndpoint.
public static GenerationMessage PollingNotSupported(string key, string entity)
Parameters
Returns
SseNotSupported(string)
TypedRest for TypeScript has no SseStreamingEndpoint.
public static GenerationMessage SseNotSupported(string key)
Parameters
keystring
Returns
StreamingCollectionNotSupported(string)
TypedRest for TypeScript has no StreamingCollectionEndpoint.
public static GenerationMessage StreamingCollectionNotSupported(string key)
Parameters
keystring
Returns
StreamingNotSupported(string)
TypedRest for TypeScript has no StreamingEndpoint.
public static GenerationMessage StreamingNotSupported(string key)
Parameters
keystring