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
-
objectModules
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
packagestringThe 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
Properties
Default
The default modules, importing from the typedrest package.
public static Modules Default { get; }
Property Value
Endpoints
Holds Endpoint and EntryEndpoint.
public TsModule Endpoints { get; }
Property Value
Generic
Holds ElementEndpoint, CollectionEndpoint, GenericCollectionEndpoint and IndexerEndpoint.
public TsModule Generic { get; }
Property Value
Package
The name of the npm package providing TypedRest.
public string Package { get; }
Property Value
Raw
Holds BlobEndpoint and UploadEndpoint.
public TsModule Raw { get; }
Property Value
Rpc
Holds ActionEndpoint, ProducerEndpoint, ConsumerEndpoint and FunctionEndpoint.
public TsModule Rpc { get; }