Skip to content

Commit

Permalink
fix: replace (section: unknown) with (sections: SettingsSection[])
Browse files Browse the repository at this point in the history
  • Loading branch information
MeguminSama committed Feb 3, 2025
1 parent 6ba5f0f commit 18e163b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/types/src/coreExtensions/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type Settings = {
label: string,
element: React.FunctionComponent,
color?: string | null,
pos?: number | ((section: unknown) => number),
pos?: number | ((sections: SettingsSection[]) => number),
notice?: NoticeProps
) => void;

Expand All @@ -53,13 +53,13 @@ export type Settings = {
* 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
Expand Down

0 comments on commit 18e163b

Please sign in to comment.