-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Installed product versions
- Visual Studio: 16.11.1
- This extension: 2.2.5.0
Description
sbyte, ushort, uint, ulong get converted to any. Wouldn't number make more sense since JavaScript can handle BigIntegers?
Steps to recreate
Generate TypeScript for the following class
public class MyClass
{
public byte Byte { get; set; }
public sbyte SByte { get; set; }
public short Short { get; set; }
public ushort UShort { get; set; }
public int Int { get; set; }
public uint UInt { get; set; }
public long Long { get; set; }
public ulong ULong { get; set; }
}Current behavior
Result is
export interface MyClass {
Byte: number;
SByte: any;
Short: number;
UShort: any;
Int: number;
UInt: any;
Long: number;
ULong: any;
}Expected behavior
export interface MyClass {
Byte: number;
SByte: number;
Short: number;
UShort: number;
Int: number;
UInt: number;
Long: number;
ULong: number;
}Metadata
Metadata
Assignees
Labels
No labels