tsgen blobs
This commit is contained in:
parent
a7f7c4bb29
commit
d50fb45547
@ -12,4 +12,9 @@ export default class GoIpcApi {
|
|||||||
const results = await this.ipc.call("GoIpcApi.Div", a, b);
|
const results = await this.ipc.call("GoIpcApi.Div", a, b);
|
||||||
return results[0] as number;
|
return results[0] as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async XorData(data1: Uint8Array, data2: Uint8Array): Promise<Uint8Array> {
|
||||||
|
const results = await this.ipc.call("GoIpcApi.XorData", data1, data2);
|
||||||
|
return results[0] as Uint8Array;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,7 @@ func (g *TypescriptApiGenerator) Generate(apis *api.Api, destFile string) error
|
|||||||
api.TInt: "number",
|
api.TInt: "number",
|
||||||
api.TString: "string",
|
api.TString: "string",
|
||||||
api.TBool: "boolean",
|
api.TBool: "boolean",
|
||||||
|
api.TBlob: "Uint8Array",
|
||||||
}[t]
|
}[t]
|
||||||
if !ok {
|
if !ok {
|
||||||
return "", fmt.Errorf("cannot generate type %v", t)
|
return "", fmt.Errorf("cannot generate type %v", t)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user