Convert all to named imports (#414)

This commit is contained in:
Jaco Greeff
2020-12-09 01:41:44 +01:00
committed by GitHub
parent a5434d4428
commit 7e494673e0
69 changed files with 175 additions and 193 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import type { KeyringJson, KeyringStore } from '../types';
import store from 'store';
export default class BrowserStore implements KeyringStore {
export class BrowserStore implements KeyringStore {
public all (cb: (key: string, value: KeyringJson) => void): void {
store.each((value: KeyringJson, key: string): void => {
cb(key, value);
+1 -1
View File
@@ -10,7 +10,7 @@ import path from 'path';
import { assert } from '@polkadot/util';
// NOTE untested and unused by any known apps, probably broken in various mysterious ways
export default class FileStore implements KeyringStore {
export class FileStore implements KeyringStore {
#path: string;
constructor (path: string) {
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as BrowserStore } from './Browser';
export { default as FileStore } from './File';
export { BrowserStore } from './Browser';
export { FileStore } from './File';