-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3d3ab5
commit 83933ec
Showing
4 changed files
with
121 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
export const documentEventResponses = { | ||
lock: "locked", | ||
unlock: "unlocked", | ||
archive: "archived", | ||
unarchive: "unarchived", | ||
} as const; | ||
export enum DocumentEventResponses { | ||
Lock = "locked", | ||
Unlock = "unlocked", | ||
Archive = "archived", | ||
Unarchive = "unarchived", | ||
} | ||
|
||
export type DocumentEventsServer = keyof typeof documentEventResponses; | ||
export type DocumentEventsClient = (typeof documentEventResponses)[DocumentEventsServer]; | ||
export type DocumentEventsServer = keyof typeof DocumentEventResponses; | ||
export type DocumentEventsClient = (typeof DocumentEventResponses)[DocumentEventsServer]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters