mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
17 lines
484 B
TypeScript
17 lines
484 B
TypeScript
export type Action = "create" | "edit" | "list" | "show" | "clone";
|
|
|
|
export type RouteAction = Exclude<Action, "list"> | undefined;
|
|
|
|
export type RedirectAction =
|
|
| Extract<Action, "list" | "show" | "edit" | "create">
|
|
| false;
|
|
|
|
/**
|
|
* @deprecated use RedirectAction type instead
|
|
*/
|
|
export type RedirectionTypes = RedirectAction;
|
|
|
|
export type FormAction = Extract<Action, "create" | "edit" | "clone">;
|
|
|
|
export type ActionWithPage = Extract<Action, "show" | "create" | "edit">;
|