Improve ready() in Preferences

This commit is contained in:
redphx
2024-05-11 07:58:27 +07:00
parent 9988a55601
commit 77f7b647da
2 changed files with 11 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ export type PreferenceSetting = {
unsupported?: string | boolean;
note?: string | HTMLElement;
type?: SettingElementType;
ready?: () => void;
ready?: (setting: PreferenceSetting) => void;
migrate?: (savedPrefs: any, value: any) => {};
min?: number;
max?: number;