mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Create bindings file per package
Improved bindings tests
This commit is contained in:
+1
-24
@@ -2,26 +2,8 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import {main, services} from './models';
|
||||
import {main} from './models';
|
||||
|
||||
function OtherService(method) {
|
||||
return {
|
||||
packageName: "services",
|
||||
serviceName: "OtherService",
|
||||
methodName: method,
|
||||
args: Array.prototype.slice.call(arguments, 1),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* OtherService.Yay
|
||||
*
|
||||
*
|
||||
* @returns {Promise<services.Address | null>}
|
||||
**/
|
||||
function Yay() {
|
||||
return wails.Call(OtherService("Yay"));
|
||||
}
|
||||
function GreetService(method) {
|
||||
return {
|
||||
packageName: "main",
|
||||
@@ -58,9 +40,4 @@ window.go.main = {
|
||||
NewPerson,
|
||||
},
|
||||
};
|
||||
window.go.services = {
|
||||
OtherService: {
|
||||
Yay,
|
||||
},
|
||||
};
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// @ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import {services} from './models';
|
||||
|
||||
function OtherService(method) {
|
||||
return {
|
||||
packageName: "services",
|
||||
serviceName: "OtherService",
|
||||
methodName: method,
|
||||
args: Array.prototype.slice.call(arguments, 1),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* OtherService.Yay
|
||||
*
|
||||
*
|
||||
* @returns {Promise<services.Address | null>}
|
||||
**/
|
||||
function Yay() {
|
||||
return wails.Call(OtherService("Yay"));
|
||||
}
|
||||
|
||||
window.go = window.go || {};
|
||||
window.go.services = {
|
||||
OtherService: {
|
||||
Yay,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user