summary refs log tree commit diff
path: root/api/src/schema
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/schema')
-rw-r--r--api/src/schema/Roles.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/src/schema/Roles.ts b/api/src/schema/Roles.ts

index 1e5f560f..e1a34ae8 100644 --- a/api/src/schema/Roles.ts +++ b/api/src/schema/Roles.ts
@@ -15,3 +15,15 @@ export interface RoleModifySchema { mentionable?: boolean; // whether the role should be mentionable position?: number; } + +export const RolePositionUpdateSchema = [ + { + id: String, + position: Number + } +]; + +export type RolePositionUpdateSchema = { + id: string; + position: number; +}[];