Source

admin-bro/src/current-admin.interface.ts

/**
 * Currently logged in admin.
 *
 * ### Usage with TypeScript
 *
 * ```typescript
 * import { CurrentAdmin } from 'admin-bro'
 * ```
 *
 * @alias CurrentAdmin
 * @memberof AdminBro
 */
export type CurrentAdmin = {
  /**
   * Admin has one required field which is an email
   */
  email: string;
  /**
   * Id of your admin user
   */
  id?: string;
  /**
   * Also you can put as many other fields to it as you like.
   */
  [key: string]: any;
}