Table of Contents

TypeScript (JavaScript/TypeScript)

TypeScript documentation for Fundamentals JavaScript/TypeScript package - an npm package that offers common utilities, formalizations and abstractions.

Overview

The Fundamentals frontend package provides JavaScript/TypeScript equivalents and enhancements to common development patterns and utilities. It includes tools for type management, serialization, field handling, and reactive programming that complement the backend .NET package.

Topics

Topic Description
GUID GUID creation, manipulation, and utility functions for unique identifiers.
Constructor Runtime constructor type alias for class-based APIs and metadata-driven tooling.
PropertyAccessor Property accessor function type for typed property selection and path utilities.
TimeSpan .NET-compatible time interval parsing, formatting, and JSON serialization.
ValueMap A value-based map for complex object keys with stable lookup semantics.
Serialization Type-safe JSON serialization and deserialization system with polymorphic support and runtime type preservation.

Installation

To install the package:

npm install @cratis/fundamentals