mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:31:20 +08:00
30 lines
605 B
JavaScript
30 lines
605 B
JavaScript
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
function GreetService(method) {
|
|
return {
|
|
packageName: "main",
|
|
serviceName: "GreetService",
|
|
methodName: method,
|
|
args: Array.prototype.slice.call(arguments, 1),
|
|
};
|
|
}
|
|
|
|
/**
|
|
* GreetService.Greet
|
|
* Greet someone
|
|
* @param name {string}
|
|
* @returns {Promise<string>}
|
|
**/
|
|
function Greet(name) {
|
|
return wails.Call(GreetService("Greet", name));
|
|
}
|
|
|
|
window.go = window.go || {};
|
|
window.go.main = {
|
|
GreetService: {
|
|
Greet,
|
|
},
|
|
};
|