Download admin-bro/src/current-admin.interface.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/admin-bro/src/current-admin.interface.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/admin-bro/src/current-admin.interface.ts
-
curl -L -o current-admin.interface.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/admin-bro/src/current-admin.interface.ts
789 Bytes
| /** | |
| * Currently logged in admin. | |
| * | |
| * ### Usage with TypeScript | |
| * | |
| * ```typescript | |
| * import { CurrentAdmin } from 'adminjs' | |
| * ``` | |
| * | |
| * @alias CurrentAdmin | |
| * @memberof AdminJS | |
| */ | |
| export interface CurrentAdmin { | |
| /** | |
| * Admin has one required field which is an email | |
| */ | |
| email: string; | |
| /** | |
| * Optional title/role of an admin - this will be presented below the email | |
| */ | |
| title?: string; | |
| /** | |
| * Optional url for an avatar photo | |
| */ | |
| avatarUrl?: string; | |
| /** | |
| * Id of your admin user | |
| */ | |
| id?: string; | |
| /** | |
| * Optional ID of theme to use | |
| */ | |
| theme?: string; | |
| /** | |
| * Extra metadata specific to given Auth Provider | |
| */ | |
| _auth?: Record<string, any>; | |
| /** | |
| * Also you can put as many other fields to it as you like. | |
| */ | |
| [key: string]: any; | |
| } | |