Skip to content

Latest commit

 

History

History
44 lines (22 loc) · 1.79 KB

readme.md

File metadata and controls

44 lines (22 loc) · 1.79 KB

TeeSquare

TeeSquare Base Library

A fluent API for writing formatted typescript code as well as a reflective writer for emitting typescript equivalents of dotnet types.

For documentation, see the unit tests

Code Writer

  • Low level writer which provides some assistance with indenting

Type Script Writer

  • Fluent abstraction for building types

Reflective Writer

  • Reflects dotnet types and outputs typescript versions

TeeSquare WebApi

Additional utilities for reflecting webapi routes and outputting a RequestFactory with methods for each api that is discovered

RouteReflector

TeeSquare MobX

Extensions of the base library for outputting MobX State Tree models

MobX

TeeSquare UnionTypes

Adds ability for TeeSquare to generate union types from dotnet types when decorated with the provided attribute

  • Union types should be expressed with a common base type in c#
  • The base type should be decorated with the [UnionType] attribute and include the types of every possible value in the constructor
  • Types from a union should have a discriminator property which should be decorated with the [AsConst(CONST_VALUE)] attribute.

UnionTypes