centralize tauri event names
This commit is contained in:
3
src/types/bindings/AppEvents.ts
Normal file
3
src/types/bindings/AppEvents.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AppEvents = "cursor-position" | "scene-interactive" | "app-data-refreshed" | "set-interaction-overlay" | "edit-doll" | "create-doll" | "user-status-changed";
|
||||
14
src/types/bindings/AppEventsConstants.ts
Normal file
14
src/types/bindings/AppEventsConstants.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// Auto-generated constants - DO NOT EDIT
|
||||
// Generated from Rust AppEvents enum
|
||||
|
||||
export const AppEvents = {
|
||||
CursorPosition: "cursor-position",
|
||||
SceneInteractive: "scene-interactive",
|
||||
AppDataRefreshed: "app-data-refreshed",
|
||||
SetInteractionOverlay: "set-interaction-overlay",
|
||||
EditDoll: "edit-doll",
|
||||
CreateDoll: "create-doll",
|
||||
UserStatusChanged: "user-status-changed",
|
||||
} as const;
|
||||
|
||||
export type AppEvents = typeof AppEvents[keyof typeof AppEvents];
|
||||
Reference in New Issue
Block a user