Change signature of SettingsManager interface, because it was incorrectly generated in dts (#245)
This commit is contained in:
parent
f809368e4f
commit
dd0cf3a7cf
1 changed files with 1 additions and 6 deletions
|
@ -9,13 +9,8 @@ export type DeleteSettingsValue = {
|
||||||
domain: string;
|
domain: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
type DeleteFnSimple = (keys: string | string[]) => Promise<void>;
|
|
||||||
type DeleteFnWithDomain = (
|
|
||||||
keysWithDomain: DeleteSettingsValue | DeleteSettingsValue[]
|
|
||||||
) => Promise<void>;
|
|
||||||
|
|
||||||
export interface SettingsManager {
|
export interface SettingsManager {
|
||||||
get: (key: string, domain?: string) => Promise<string | undefined>;
|
get: (key: string, domain?: string) => Promise<string | undefined>;
|
||||||
set: (settings: SettingsValue[] | SettingsValue) => Promise<void>;
|
set: (settings: SettingsValue[] | SettingsValue) => Promise<void>;
|
||||||
delete: DeleteFnSimple | DeleteFnWithDomain;
|
delete: (args: DeleteSettingsValue | DeleteSettingsValue[] | string | string[]) => Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue