File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
55export { 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}
You can’t perform that action at this time.
0 commit comments