this repo has no description

fix: replace (section: unknown) with (sections: SettingsSection[])

Changed files
+3 -3
packages
types
src
coreExtensions
+3 -3
packages/types/src/coreExtensions/settings.ts
···
label: string,
element: React.FunctionComponent,
color?: string | null,
-
pos?: number | ((section: unknown) => number),
+
pos?: number | ((sections: SettingsSection[]) => number),
notice?: NoticeProps
) => void;
···
* Places a divider in the settings menu.
* @param pos The position in the settings menu to place the divider
*/
-
addDivider: (pos: number | ((section: unknown) => number) | null) => void;
+
addDivider: (pos: number | ((sections: SettingsSection[]) => number) | null) => void;
/**
* Places a header in the settings menu.
* @param pos The position in the settings menu to place the header
*/
-
addHeader: (label: string, pos: number | ((section: unknown) => number) | null) => void;
+
addHeader: (label: string, pos: number | ((sections: SettingsSection[]) => number) | null) => void;
/**
* @private