We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c796dcb commit db84ed0Copy full SHA for db84ed0
adminforth/types/Common.ts
@@ -1164,7 +1164,7 @@ export interface AdminForthConfigMenuItem {
1164
* Optional callback which will be called before rendering the menu for each item.
1165
* Result of callback if not null will be used as a small badge near the menu item.
1166
*/
1167
- badge?: string | ((user: AdminUser) => Promise<string>),
+ badge?: string | number | ((user: AdminUser) => Promise<string> | string | Promise<number> | number),
1168
1169
/**
1170
* Tooltip shown on hover for badge
0 commit comments