Update bindings tests

This commit is contained in:
Lea Anthony
2024-01-07 20:11:34 +11:00
parent 6d8a004f4a
commit b6dc199993
74 changed files with 510 additions and 445 deletions
@@ -2,6 +2,7 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
/**
* @typedef {import('./models').Person} Person
*/
@@ -13,7 +14,7 @@
* @returns {Promise<string>}
**/
export async function Greet(name) {
return wails.CallByID(1411160069, ...Array.prototype.slice.call(arguments, 0));
return Call.ByID(1411160069, ...Array.prototype.slice.call(arguments, 0));
}
/**
@@ -23,5 +24,5 @@ export async function Greet(name) {
* @returns {Promise<Person>}
**/
export async function NewPerson(name) {
return wails.CallByID(1661412647, ...Array.prototype.slice.call(arguments, 0));
return Call.ByID(1661412647, ...Array.prototype.slice.call(arguments, 0));
}
@@ -2,6 +2,7 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
/**
* @typedef {import('./models').Person} Person
*/
@@ -13,7 +14,7 @@
* @returns {Promise<string>}
**/
export async function Greet(name) {
return wails.CallByName("main.GreetService.Greet", ...Array.prototype.slice.call(arguments, 0));
return Call.ByName("main.GreetService.Greet", ...Array.prototype.slice.call(arguments, 0));
}
/**
@@ -23,5 +24,5 @@ export async function Greet(name) {
* @returns {Promise<Person>}
**/
export async function NewPerson(name) {
return wails.CallByName("main.GreetService.NewPerson", ...Array.prototype.slice.call(arguments, 0));
return Call.ByName("main.GreetService.NewPerson", ...Array.prototype.slice.call(arguments, 0));
}
@@ -1,15 +1,16 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
import {Person} from './models';
// Greet does XYZ
export async function Greet(name: string) : Promise<string> {
return wails.CallByName("main.GreetService.Greet", name);
return Call.ByName("main.GreetService.Greet", name);
}
// NewPerson creates a new person
export async function NewPerson(name: string) : Promise<Person> {
return wails.CallByName("main.GreetService.NewPerson", name);
return Call.ByName("main.GreetService.NewPerson", name);
}
@@ -1,15 +1,16 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
import {Person} from './models';
// Greet does XYZ
export async function Greet(name: string) : Promise<string> {
return wails.CallByID(1411160069, name);
return Call.ByID(1411160069, name);
}
// NewPerson creates a new person
export async function NewPerson(name: string) : Promise<Person> {
return wails.CallByID(1661412647, name);
return Call.ByID(1661412647, name);
}
@@ -2,6 +2,7 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
/**
* @typedef {import('./models').Address} Address
*/
@@ -12,5 +13,5 @@
* @returns {Promise<Address>}
**/
export async function Yay() {
return wails.CallByID(302702907, ...Array.prototype.slice.call(arguments, 0));
return Call.ByID(302702907, ...Array.prototype.slice.call(arguments, 0));
}
@@ -2,6 +2,7 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
/**
* @typedef {import('./models').Address} Address
*/
@@ -12,5 +13,5 @@
* @returns {Promise<Address>}
**/
export async function Yay() {
return wails.CallByName("services.OtherService.Yay", ...Array.prototype.slice.call(arguments, 0));
return Call.ByName("services.OtherService.Yay", ...Array.prototype.slice.call(arguments, 0));
}
@@ -1,10 +1,11 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
import {Address} from './models';
// Yay does this and that
export async function Yay() : Promise<Address> {
return wails.CallByName("services.OtherService.Yay");
return Call.ByName("services.OtherService.Yay");
}
@@ -1,10 +1,11 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {Call} from '@wailsio/runtime';
import {Address} from './models';
// Yay does this and that
export async function Yay() : Promise<Address> {
return wails.CallByID(302702907);
return Call.ByID(302702907);
}