Improved tauri events type safety
This commit is contained in:
4
src/types/bindings/FriendActiveDollChangedPayload.ts
Normal file
4
src/types/bindings/FriendActiveDollChangedPayload.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DollDto } from "./DollDto";
|
||||
|
||||
export type FriendActiveDollChangedPayload = { friendId: string, doll: DollDto | null, };
|
||||
3
src/types/bindings/FriendDisconnectedPayload.ts
Normal file
3
src/types/bindings/FriendDisconnectedPayload.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 FriendDisconnectedPayload = { userId: string, };
|
||||
4
src/types/bindings/FriendRequestAcceptedPayload.ts
Normal file
4
src/types/bindings/FriendRequestAcceptedPayload.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { UserBasicDto } from "./UserBasicDto";
|
||||
|
||||
export type FriendRequestAcceptedPayload = { id: string, friend: UserBasicDto, acceptedAt: string, };
|
||||
4
src/types/bindings/FriendRequestDeniedPayload.ts
Normal file
4
src/types/bindings/FriendRequestDeniedPayload.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { UserBasicDto } from "./UserBasicDto";
|
||||
|
||||
export type FriendRequestDeniedPayload = { id: string, denier: UserBasicDto, deniedAt: string, };
|
||||
4
src/types/bindings/FriendRequestReceivedPayload.ts
Normal file
4
src/types/bindings/FriendRequestReceivedPayload.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { UserBasicDto } from "./UserBasicDto";
|
||||
|
||||
export type FriendRequestReceivedPayload = { id: string, sender: UserBasicDto, createdAt: string, };
|
||||
4
src/types/bindings/FriendUserStatusPayload.ts
Normal file
4
src/types/bindings/FriendUserStatusPayload.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { UserStatusPayload } from "./UserStatusPayload";
|
||||
|
||||
export type FriendUserStatusPayload = { userId: string, status: UserStatusPayload, };
|
||||
3
src/types/bindings/UnfriendedPayload.ts
Normal file
3
src/types/bindings/UnfriendedPayload.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 UnfriendedPayload = { friendId: string, };
|
||||
5
src/types/bindings/UserStatusPayload.ts
Normal file
5
src/types/bindings/UserStatusPayload.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { PresenceStatus } from "./PresenceStatus";
|
||||
import type { UserStatusState } from "./UserStatusState";
|
||||
|
||||
export type UserStatusPayload = { presenceStatus: PresenceStatus, state: UserStatusState, };
|
||||
3
src/types/bindings/UserStatusState.ts
Normal file
3
src/types/bindings/UserStatusState.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 UserStatusState = "idle" | "resting";
|
||||
Reference in New Issue
Block a user