Skip to content

Commit 34e5b4a

Browse files
committed
fix: typing
1 parent 0edf7b0 commit 34e5b4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Internal state shared with followingPageOptions
2-
const optionProviders: Array<(section: string) => Record<string, string>> = [];
2+
const optionProviders: Array<(section: string) => Record<string, string | any[]>> = [];
33

44
// Export the providers array so followingPageOptions can access it
55
export { optionProviders };
66

77
/**
88
* Register a provider function that contributes options to the following page dropdown.
99
* The provider will be called with a section name (e.g., "admin.settings", "forum.index_filter")
10-
* and should return an object mapping option keys to translated labels.
10+
* and should return an object mapping option keys to translated labels (or arrays for grouped options).
1111
*/
12-
export default function addFollowingPageOption(provider: (section: string) => Record<string, string>): void {
12+
export default function addFollowingPageOption(provider: (section: string) => Record<string, string | any[]>): void {
1313
optionProviders.push(provider);
1414
}

0 commit comments

Comments
 (0)