Skip to content
CarlosOnline edited this page Sep 18, 2017 · 1 revision

Qualified Names converted to any

Qualified types that are not found in the c# files with be given the any typescript tye.

For example:
c# Typescript
UnknownNameSpace.FirsClass_ myProp {get; set;} myProp: any;
KnownNameSpace.FirsClass_ myProp {get; set;} myProp: KnownNameSpace.FirstClass
System.Collections.Generic.List<bool> listProp { get; set; } listProp: bool[]
List<bool> boolProp { get; set; } listProp: bool[]

Nested classes / structs / enums not handled

Nested classes, enums, structs are not handled. Feel free to add and share the code please. Workaround: use --exclude command line option to exclude these types.

All declarations of must have identical type parameters

c# classes with similar bases can lead to dupliate typescript definitions. Workaround: use --exclude command line option to exclude these types.

Typescript example

   export interface IData {
      primaryKey : number;
   }

   export interface IData<T> extends IData {
      primaryKeyPredicate : any;
   }

Multiple dimensional arrays mapped to any

c# multi-dimensional arrays are not handled. Instead they are mapped to any.

array[,];
array[][];

Clone this wiki locally