Remove number and add int and float insted
This commit is contained in:
@ -12,10 +12,11 @@ type lineAppender = (ind: number, line: string | string[]) => void;
|
||||
|
||||
const conversion = {
|
||||
boolean: "bool",
|
||||
number: "double",
|
||||
int: "long",
|
||||
float: "double",
|
||||
string: "string",
|
||||
void: "void",
|
||||
bytes: ""
|
||||
bytes: "",
|
||||
};
|
||||
|
||||
function toCSharpType(type: string): string {
|
||||
@ -30,8 +31,8 @@ export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> {
|
||||
}
|
||||
|
||||
start(): void {
|
||||
if(this.options.use_messagepack == true) {
|
||||
throw new Error("C# has no support for MessagePack yet!");
|
||||
if (this.options.allow_bytes == true) {
|
||||
throw new Error("C# has no support for 'bytes' yet!");
|
||||
}
|
||||
this.writeFile(
|
||||
this.namespace + ".csproj",
|
||||
|
@ -13,7 +13,8 @@ type lineAppender = (ind: number, line: string | string[]) => void;
|
||||
|
||||
const conversion = {
|
||||
boolean: "boolean",
|
||||
number: "number",
|
||||
int: "number",
|
||||
float: "number",
|
||||
string: "string",
|
||||
void: "void",
|
||||
bytes: "Uint8Array",
|
||||
@ -45,7 +46,7 @@ export class TypescriptTarget extends CompileTarget {
|
||||
a(
|
||||
0,
|
||||
this.generateImport(
|
||||
`{ VerificationError, apply_number, apply_string, apply_boolean, apply_void }`,
|
||||
`{ VerificationError, apply_int, apply_float, apply_string, apply_boolean, apply_void }`,
|
||||
`./ts_base`
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user