Repository navigation
Issues
CarlosOnline edited this page Sep 18, 2017
·
1 revision
Qualified types that are not found in the c# files with be given the any typescript tye.
| 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, enums, structs are not handled. Feel free to add and share the code please. Workaround: use --exclude command line option to exclude these types.
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;
}
c# multi-dimensional arrays are not handled. Instead they are mapped to any.
array[,];
array[][];