mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-11-02 00:41:09 +00:00
Move to @pezkuwi/dev 0.86 (eslint 10 toolchain)
- @pezkuwi/dev, dev-test, dev-ts ^0.86.3 - react-qr Display: the frames follow the value's content (xxhash), are reset while rendering instead of in an effect, and the frame timer is keyed on the frame set. Before, a value that went from one frame to several never started animating; Display.spec covers single, multi, single-to-multi and unmount. tsconfig build/spec know *.spec.tsx. - optional calls instead of guard expressions (ScanAddress, stores) - KeyringOptions as a Record; type assertions the receiver already accepts removed (Settings, vue-identicon) - disable directives narrowed to the rules that still report
This commit is contained in:
1 parent
6ee748883a
commit
5a542f2805
18 files changed
+2861
-3172
No files matched your search
@@ -11,9 +11,7 @@ export interface KeyringSectionOption {
|
||||
|
||||
export type KeyringSectionOptions = KeyringSectionOption[];
|
||||
|
||||
export type KeyringOptions = {
|
||||
[type in KeyringItemType | 'all' | 'allPlus' | 'recent' | 'testing']: KeyringSectionOptions
|
||||
};
|
||||
export type KeyringOptions = Record<KeyringItemType | 'all' | 'allPlus' | 'recent' | 'testing', KeyringSectionOptions>;
|
||||
|
||||
export type KeyringOption$Type = keyof KeyringOptions;
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ export class BrowserStore implements KeyringStore {
|
||||
|
||||
public remove (key: string, fn?: () => void): void {
|
||||
store.remove(key);
|
||||
fn && fn();
|
||||
fn?.();
|
||||
}
|
||||
|
||||
public set (key: string, value: KeyringJson, fn?: () => void): void {
|
||||
store.set(key, value);
|
||||
fn && fn();
|
||||
fn?.();
|
||||
}
|
||||
}
|
||||
@@ -64,12 +64,12 @@ export class FileStore implements KeyringStore {
|
||||
|
||||
public remove (key: string, fn?: () => void): void {
|
||||
fs.unlinkSync(this._getPath(key));
|
||||
fn && fn();
|
||||
fn?.();
|
||||
}
|
||||
|
||||
public set (key: string, value: KeyringJson, fn?: () => void): void {
|
||||
fs.writeFileSync(this._getPath(key), Buffer.from(JSON.stringify(value), 'utf-8'));
|
||||
fn && fn();
|
||||
fn?.();
|
||||
}
|
||||
|
||||
private _getPath (key: string): string {
|
||||
|
||||
Reference in new issue
Block a user