- default(...args: []): TypeB<CommandsContext & Partial<{
keyboard: {
keyBindingContributions: KeyBindingContributionRegistry;
};
}>, {
preferences: {
clearAll: ((...args: []) => void);
createStore: (<T>(this: { get: (key: string, defaultValue?: string | undefined) => string | undefined; set: (key: string, value: SetStateValue<string | undefined>) => void; clearAll: () => void; createStore: <T extends JSONTypes>(this: ..., key: string, defaultValue?: T | undefined) => { ...; }; }, key: string, defaultValue?: T) => {
set: (<V>(value: V) => V extends AnyFunction<any, Promise<any>> ? Promise<void> : void);
get(): T;
});
get: ((...args: [key: string, defaultValue?: string]) => undefined | string);
set: ((...args: [key: string, value: SetStateValue<undefined | string>]) => void);
};
}>
-
Returns TypeB<CommandsContext & Partial<{
keyboard: {
keyBindingContributions: KeyBindingContributionRegistry;
};
}>, {
preferences: {
clearAll: ((...args: []) => void);
createStore: (<T>(this: { get: (key: string, defaultValue?: string | undefined) => string | undefined; set: (key: string, value: SetStateValue<string | undefined>) => void; clearAll: () => void; createStore: <T extends JSONTypes>(this: ..., key: string, defaultValue?: T | undefined) => { ...; }; }, key: string, defaultValue?: T) => {
set: (<V>(value: V) => V extends AnyFunction<any, Promise<any>> ? Promise<void> : void);
get(): T;
});
get: ((...args: [key: string, defaultValue?: string]) => undefined | string);
set: ((...args: [key: string, value: SetStateValue<undefined | string>]) => void);
};
}>
Preferences Plugin.
Uses
@just-web/commands
Optional
@just-web/keyboard