You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* load manifest metadata into the FE
* builder only edits draft/ apps (convert local => draft)
* gofmt app.go after saving (AI tools and manual user save)
* dont open duplicate builder windows
* remix app context menu in waveapp
* add icon/iconcolor in appmeta and implement in the wave block frame
Copy file name to clipboardExpand all lines: .roo/rules/rules.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,18 @@ To define a new RPC call, add the new definition to `pkg/wshrpc/wshrpctypes.go`
58
58
59
59
For normal "server" RPCs (where a frontend client is calling the main server) you should implement the RPC call in `pkg/wshrpc/wshserver.go`.
60
60
61
+
### Electron API
62
+
63
+
From within the FE to get the electron API (e.g. the preload functions):
64
+
65
+
```
66
+
import { getApi } from "@/store/global";
67
+
68
+
getApi().getIsDev()
69
+
```
70
+
71
+
The full API is defined in custom.d.ts as type ElectronApi.
72
+
61
73
### Code Generation
62
74
63
75
-**TypeScript Types**: TypeScript types are automatically generated from Go types. After modifying Go types in `pkg/wshrpc/wshrpctypes.go`, run `task generate` to update the TypeScript type definitions in `frontend/types/gotypes.d.ts`.
0 commit comments