Table of Contents

Class Modules

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

The modules of the TypedRest runtime library that generated code imports from.

public class Modules
Inheritance
object
Modules

Remarks

TypedRest for TypeScript has no exports map, so subpath imports resolve by directory. This mirrors the namespace layout of TypedRest for .NET and keeps the imported names short.

Constructors

Modules(string)

The modules of the TypedRest runtime library that generated code imports from.

public Modules(string package = "typedrest")

Parameters

package string

The name of the npm package providing TypedRest.

Remarks

TypedRest for TypeScript has no exports map, so subpath imports resolve by directory. This mirrors the namespace layout of TypedRest for .NET and keeps the imported names short.

Fields

DefaultPackage

The name of the npm package providing TypedRest.

public const string DefaultPackage = "typedrest"

Field Value

string

Properties

Default

The default modules, importing from the typedrest package.

public static Modules Default { get; }

Property Value

Modules

Endpoints

Holds Endpoint and EntryEndpoint.

public TsModule Endpoints { get; }

Property Value

TsModule

Generic

Holds ElementEndpoint, CollectionEndpoint, GenericCollectionEndpoint and IndexerEndpoint.

public TsModule Generic { get; }

Property Value

TsModule

Package

The name of the npm package providing TypedRest.

public string Package { get; }

Property Value

string

Raw

Holds BlobEndpoint and UploadEndpoint.

public TsModule Raw { get; }

Property Value

TsModule

Rpc

Holds ActionEndpoint, ProducerEndpoint, ConsumerEndpoint and FunctionEndpoint.

public TsModule Rpc { get; }

Property Value

TsModule