Skip to content

tristanmenzel/TeeSquare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published