Add MessagePack support to Typescript. C# Is still unsupported
This commit is contained in:
@ -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")
|
||||
|
@ -16,6 +16,7 @@ const conversion = {
|
||||
number: "number",
|
||||
string: "string",
|
||||
void: "void",
|
||||
bytes: "Uint8Array"
|
||||
};
|
||||
|
||||
function toJSType(type: string): string {
|
||||
|
Reference in New Issue
Block a user