Add MessagePack support to Typescript. C# Is still unsupported

This commit is contained in:
K35
2022-01-10 20:17:25 +00:00
parent 6236a14377
commit 491e1ac052
6 changed files with 34 additions and 16 deletions

View File

@ -15,6 +15,7 @@ const conversion = {
number: "double",
string: "string",
void: "void",
bytes: ""
};
function toCSharpType(type: string): string {
@ -29,6 +30,9 @@ 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!");
}
this.writeFile(
this.namespace + ".csproj",
this.getTemplate("CSharp/CSharp.csproj")

View File

@ -16,6 +16,7 @@ const conversion = {
number: "number",
string: "string",
void: "void",
bytes: "Uint8Array"
};
function toJSType(type: string): string {