Files
simrsx-fe/app/models/role.ts
2025-11-27 04:50:07 +07:00

23 lines
465 B
TypeScript

import type { PAGE_PERMISSIONS } from '~/lib/page-permission'
export interface User {
id: string
name: string
email: string
}
export interface AuthState {
user: User | null
roles: string[]
token: string | null
}
export type Permission = 'C' | 'R' | 'U' | 'D'
export interface RoleAccesses {
[role: string]: Permission[]
}
// export type PagePath = keyof typeof PAGE_PERMISSIONS
// export type PagePermission = (typeof PAGE_PERMISSIONS)[PagePath]