diff --git a/packages/example-vue/src/index.ts b/packages/example-vue/src/index.ts index 619d59d7..9cb8174d 100644 --- a/packages/example-vue/src/index.ts +++ b/packages/example-vue/src/index.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/example-vue authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Prefix } from '@polkadot/util-crypto/address/types'; +import type { Prefix } from '@polkadot/util-crypto/address/types'; import Vue, { VNode } from 'vue'; import keyring from '@polkadot/ui-keyring'; diff --git a/packages/ledger-transports/src/browser.ts b/packages/ledger-transports/src/browser.ts index 24663a4e..644c7630 100644 --- a/packages/ledger-transports/src/browser.ts +++ b/packages/ledger-transports/src/browser.ts @@ -1,9 +1,9 @@ // Copyright 2017-2020 @polkadot/ledger authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { TransportDef } from './types'; +import type Transport from '@ledgerhq/hw-transport'; +import type { TransportDef } from './types'; -import Transport from '@ledgerhq/hw-transport'; import LedgerWebUSB from '@ledgerhq/hw-transport-webusb'; const transports: TransportDef[] = [ diff --git a/packages/ledger-transports/src/node.ts b/packages/ledger-transports/src/node.ts index cb419b6d..a827d3b4 100644 --- a/packages/ledger-transports/src/node.ts +++ b/packages/ledger-transports/src/node.ts @@ -1,9 +1,9 @@ // Copyright 2017-2020 @polkadot/ledger authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { TransportDef } from './types'; +import type Transport from '@ledgerhq/hw-transport'; +import type { TransportDef } from './types'; -import Transport from '@ledgerhq/hw-transport'; import LedgerHid from '@ledgerhq/hw-transport-node-hid-singleton'; const transports: TransportDef[] = [ diff --git a/packages/ledger-transports/src/react-native.ts b/packages/ledger-transports/src/react-native.ts index 6a2bd60a..f65763b4 100644 --- a/packages/ledger-transports/src/react-native.ts +++ b/packages/ledger-transports/src/react-native.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ledger authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { TransportDef } from './types'; +import type { TransportDef } from './types'; const transports: TransportDef[] = []; diff --git a/packages/ledger/src/index.ts b/packages/ledger/src/index.ts index 5cc9339c..00665b8e 100644 --- a/packages/ledger/src/index.ts +++ b/packages/ledger/src/index.ts @@ -1,8 +1,8 @@ // Copyright 2017-2020 @polkadot/ledger authors & contributors // SPDX-License-Identifier: Apache-2.0 -import Transport from '@ledgerhq/hw-transport'; -import { AccountOptions, LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types'; +import type Transport from '@ledgerhq/hw-transport'; +import type { AccountOptions, LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types'; import { ResponseBase, SubstrateApp, newKusamaApp, newPolkadotApp } from '@zondax/ledger-polkadot'; import transports from '@polkadot/ledger-transports'; diff --git a/packages/react-identicon/src/Identicon.tsx b/packages/react-identicon/src/Identicon.tsx index a0af433f..c1d5b679 100644 --- a/packages/react-identicon/src/Identicon.tsx +++ b/packages/react-identicon/src/Identicon.tsx @@ -1,8 +1,8 @@ // Copyright 2017-2020 @polkadot/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Prefix } from '@polkadot/util-crypto/address/types'; -import { IdentityProps as Props, Props as ComponentProps } from './types'; +import type { Prefix } from '@polkadot/util-crypto/address/types'; +import type { IdentityProps as Props, Props as ComponentProps } from './types'; import React from 'react'; import CopyToClipboard from 'react-copy-to-clipboard'; diff --git a/packages/react-identicon/src/icons/Beachball.tsx b/packages/react-identicon/src/icons/Beachball.tsx index e40655db..8895d23a 100644 --- a/packages/react-identicon/src/icons/Beachball.tsx +++ b/packages/react-identicon/src/icons/Beachball.tsx @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Props } from '../types'; +import type { Props } from '../types'; import React, { useCallback } from 'react'; import { beachballIcon } from '@polkadot/ui-shared'; diff --git a/packages/react-identicon/src/icons/Empty.tsx b/packages/react-identicon/src/icons/Empty.tsx index 8ec4992c..301dc918 100644 --- a/packages/react-identicon/src/icons/Empty.tsx +++ b/packages/react-identicon/src/icons/Empty.tsx @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Props } from '../types'; +import type { Props } from '../types'; import React from 'react'; diff --git a/packages/react-identicon/src/icons/Ethereum.tsx b/packages/react-identicon/src/icons/Ethereum.tsx index 171813cb..7abd2280 100644 --- a/packages/react-identicon/src/icons/Ethereum.tsx +++ b/packages/react-identicon/src/icons/Ethereum.tsx @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Props } from '../types'; +import type { Props } from '../types'; import makeBlockie from 'ethereum-blockies-base64'; import React, { useMemo } from 'react'; diff --git a/packages/react-identicon/src/icons/Jdenticon.tsx b/packages/react-identicon/src/icons/Jdenticon.tsx index 9648d568..65803314 100644 --- a/packages/react-identicon/src/icons/Jdenticon.tsx +++ b/packages/react-identicon/src/icons/Jdenticon.tsx @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Props } from '../types'; +import type { Props } from '../types'; import React from 'react'; import jdenticon from 'jdenticon'; diff --git a/packages/react-identicon/src/icons/Polkadot.tsx b/packages/react-identicon/src/icons/Polkadot.tsx index f2ef2de1..8911109c 100644 --- a/packages/react-identicon/src/icons/Polkadot.tsx +++ b/packages/react-identicon/src/icons/Polkadot.tsx @@ -15,8 +15,8 @@ // - Move constants to file-level // - Overall it is now just a static component, expecting an address as an input value -import { Circle } from '@polkadot/ui-shared/icons/types'; -import { Props } from '../types'; +import type { Circle } from '@polkadot/ui-shared/icons/types'; +import type { Props } from '../types'; import React from 'react'; import { polkadotIcon } from '@polkadot/ui-shared'; diff --git a/packages/react-identicon/src/types.ts b/packages/react-identicon/src/types.ts index 5054ace8..ff2c167d 100644 --- a/packages/react-identicon/src/types.ts +++ b/packages/react-identicon/src/types.ts @@ -1,7 +1,8 @@ // Copyright 2018-2020 @polkadot/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Prefix } from '@polkadot/util-crypto/address/types'; +import type { Prefix } from '@polkadot/util-crypto/address/types'; + import React from 'react'; export interface BaseProps { diff --git a/packages/reactnative-identicon/src/Identicon.tsx b/packages/reactnative-identicon/src/Identicon.tsx index f2faf159..268e46b7 100644 --- a/packages/reactnative-identicon/src/Identicon.tsx +++ b/packages/reactnative-identicon/src/Identicon.tsx @@ -1,8 +1,8 @@ // Copyright 2017-2020 @polkadot/reactnative-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Prefix } from '@polkadot/util-crypto/address/types'; -import { Props as ComponentProps } from './types'; +import type { Prefix } from '@polkadot/util-crypto/address/types'; +import type { Props as ComponentProps } from './types'; import React from 'react'; import { isHex, isU8a, u8aToHex } from '@polkadot/util'; diff --git a/packages/reactnative-identicon/src/icons/Empty.tsx b/packages/reactnative-identicon/src/icons/Empty.tsx index d4cd8bad..9a7550ef 100644 --- a/packages/reactnative-identicon/src/icons/Empty.tsx +++ b/packages/reactnative-identicon/src/icons/Empty.tsx @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/reactnative-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Props } from '../types'; +import type { Props } from '../types'; import React from 'react'; import { View } from 'react-native'; diff --git a/packages/reactnative-identicon/src/icons/Polkadot.tsx b/packages/reactnative-identicon/src/icons/Polkadot.tsx index 3a162fbb..1dba33b6 100644 --- a/packages/reactnative-identicon/src/icons/Polkadot.tsx +++ b/packages/reactnative-identicon/src/icons/Polkadot.tsx @@ -1,8 +1,8 @@ // Copyright 2018-2020 @polkadot/reactnative-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Circle as CircleType } from '@polkadot/ui-shared/icons/types'; -import { Props } from '../types'; +import type { Circle as CircleType } from '@polkadot/ui-shared/icons/types'; +import type { Props } from '../types'; import React from 'react'; import { View } from 'react-native'; diff --git a/packages/ui-keyring/src/Base.ts b/packages/ui-keyring/src/Base.ts index f5a5f74c..fd59b2be 100644 --- a/packages/ui-keyring/src/Base.ts +++ b/packages/ui-keyring/src/Base.ts @@ -1,10 +1,10 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringInstance, KeyringPair } from '@polkadot/keyring/types'; -import { Prefix } from '@polkadot/util-crypto/address/types'; -import { AddressSubject } from './observable/types'; -import { KeyringOptions, KeyringStore } from './types'; +import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types'; +import type { Prefix } from '@polkadot/util-crypto/address/types'; +import type { AddressSubject } from './observable/types'; +import type { KeyringOptions, KeyringStore } from './types'; import { createTestKeyring } from '@polkadot/keyring/testing'; import { isBoolean, isString } from '@polkadot/util'; diff --git a/packages/ui-keyring/src/Keyring.ts b/packages/ui-keyring/src/Keyring.ts index 05e1993e..ad62b78a 100644 --- a/packages/ui-keyring/src/Keyring.ts +++ b/packages/ui-keyring/src/Keyring.ts @@ -1,10 +1,10 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringPair, KeyringPair$Meta, KeyringPair$Json } from '@polkadot/keyring/types'; -import { KeypairType } from '@polkadot/util-crypto/types'; -import { AddressSubject, SingleAddress } from './observable/types'; -import { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringStruct } from './types'; +import type { KeyringPair, KeyringPair$Meta, KeyringPair$Json } from '@polkadot/keyring/types'; +import type { KeypairType } from '@polkadot/util-crypto/types'; +import type { AddressSubject, SingleAddress } from './observable/types'; +import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringStruct } from './types'; import BN from 'bn.js'; import { createPair } from '@polkadot/keyring/pair'; diff --git a/packages/ui-keyring/src/observable/genericSubject.ts b/packages/ui-keyring/src/observable/genericSubject.ts index 676232bb..e4f51cca 100644 --- a/packages/ui-keyring/src/observable/genericSubject.ts +++ b/packages/ui-keyring/src/observable/genericSubject.ts @@ -1,8 +1,8 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { SubjectInfo, AddressSubject, SingleAddress } from './types'; -import { KeyringJson, KeyringStore } from '../types'; +import type { SubjectInfo, AddressSubject, SingleAddress } from './types'; +import type { KeyringJson, KeyringStore } from '../types'; import { BehaviorSubject } from 'rxjs'; diff --git a/packages/ui-keyring/src/observable/index.ts b/packages/ui-keyring/src/observable/index.ts index 1b80d2b5..c33583f4 100644 --- a/packages/ui-keyring/src/observable/index.ts +++ b/packages/ui-keyring/src/observable/index.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { SubjectInfo } from './types'; +import type { SubjectInfo } from './types'; import { combineLatest } from 'rxjs'; import { map } from 'rxjs/operators'; diff --git a/packages/ui-keyring/src/observable/types.ts b/packages/ui-keyring/src/observable/types.ts index b842b978..9f230c57 100644 --- a/packages/ui-keyring/src/observable/types.ts +++ b/packages/ui-keyring/src/observable/types.ts @@ -1,9 +1,9 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { BehaviorSubject } from 'rxjs'; -import { KeyringSectionOption } from '../options/types'; -import { KeyringJson, KeyringStore } from '../types'; +import type { BehaviorSubject } from 'rxjs'; +import type { KeyringSectionOption } from '../options/types'; +import type { KeyringJson, KeyringStore } from '../types'; export interface SingleAddress { json: KeyringJson; diff --git a/packages/ui-keyring/src/options/index.spec.ts b/packages/ui-keyring/src/options/index.spec.ts index 71f682a5..9e55d946 100644 --- a/packages/ui-keyring/src/options/index.spec.ts +++ b/packages/ui-keyring/src/options/index.spec.ts @@ -1,7 +1,8 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringStruct } from '../types'; +import type { KeyringStruct } from '../types'; + import { KeyringOption } from '.'; const keyringOption = new KeyringOption(); diff --git a/packages/ui-keyring/src/options/index.ts b/packages/ui-keyring/src/options/index.ts index 826614df..36425935 100644 --- a/packages/ui-keyring/src/options/index.ts +++ b/packages/ui-keyring/src/options/index.ts @@ -1,9 +1,9 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringStruct } from '../types'; -import { SingleAddress } from '../observable/types'; -import { KeyringOptions, KeyringOptionInstance, KeyringSectionOption, KeyringSectionOptions } from './types'; +import type { KeyringStruct } from '../types'; +import type { SingleAddress } from '../observable/types'; +import type { KeyringOptions, KeyringOptionInstance, KeyringSectionOption, KeyringSectionOptions } from './types'; import { BehaviorSubject } from 'rxjs'; import { assert } from '@polkadot/util'; diff --git a/packages/ui-keyring/src/options/item.ts b/packages/ui-keyring/src/options/item.ts index 9e7c2ecf..dfd87436 100644 --- a/packages/ui-keyring/src/options/item.ts +++ b/packages/ui-keyring/src/options/item.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringSectionOption } from './types'; +import type { KeyringSectionOption } from './types'; import { isUndefined } from '@polkadot/util'; diff --git a/packages/ui-keyring/src/options/types.ts b/packages/ui-keyring/src/options/types.ts index 2c988ea1..e45e269a 100644 --- a/packages/ui-keyring/src/options/types.ts +++ b/packages/ui-keyring/src/options/types.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringItemType, KeyringStruct } from '../types'; +import type { KeyringItemType, KeyringStruct } from '../types'; export interface KeyringSectionOption { key: string | null; diff --git a/packages/ui-keyring/src/stores/Browser.ts b/packages/ui-keyring/src/stores/Browser.ts index 6e7e4fd2..f8a70260 100644 --- a/packages/ui-keyring/src/stores/Browser.ts +++ b/packages/ui-keyring/src/stores/Browser.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringStore, KeyringJson } from '../types'; +import type { KeyringStore, KeyringJson } from '../types'; import store from 'store'; diff --git a/packages/ui-keyring/src/stores/File.ts b/packages/ui-keyring/src/stores/File.ts index a2f98f6e..eb48307f 100644 --- a/packages/ui-keyring/src/stores/File.ts +++ b/packages/ui-keyring/src/stores/File.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { KeyringStore, KeyringJson } from '../types'; +import type { KeyringStore, KeyringJson } from '../types'; import fs from 'fs'; import mkdirp from 'mkdirp'; diff --git a/packages/ui-keyring/src/types.ts b/packages/ui-keyring/src/types.ts index 9132def3..b6285214 100644 --- a/packages/ui-keyring/src/types.ts +++ b/packages/ui-keyring/src/types.ts @@ -1,10 +1,10 @@ // Copyright 2017-2020 @polkadot/ui-keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Hash } from '@polkadot/types/interfaces'; -import { KeyringInstance as BaseKeyringInstance, KeyringPair, KeyringPair$Meta, KeyringPair$Json, KeyringOptions as KeyringOptionsBase } from '@polkadot/keyring/types'; -import { KeypairType } from '@polkadot/util-crypto/types'; -import { AddressSubject, SingleAddress } from './observable/types'; +import type { Hash } from '@polkadot/types/interfaces'; +import type { KeyringInstance as BaseKeyringInstance, KeyringPair, KeyringPair$Meta, KeyringPair$Json, KeyringOptions as KeyringOptionsBase } from '@polkadot/keyring/types'; +import type { KeypairType } from '@polkadot/util-crypto/types'; +import type { AddressSubject, SingleAddress } from './observable/types'; export interface ContractMeta { abi: string; diff --git a/packages/ui-settings/src/Settings.ts b/packages/ui-settings/src/Settings.ts index 4100aaf5..bc0d4d88 100644 --- a/packages/ui-settings/src/Settings.ts +++ b/packages/ui-settings/src/Settings.ts @@ -1,12 +1,13 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { Option, SettingsStruct } from './types'; + import EventEmitter from 'eventemitter3'; import store from 'store'; import { isUndefined } from '@polkadot/util'; import { CAMERA_DEFAULT, CAMERA, CRYPTOS, CRYPTOS_ETH, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING_DEFAULT, LOCKING, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults'; -import { Option, SettingsStruct } from './types'; type ChangeCallback = (settings: SettingsStruct) => void; type OnTypes = 'change'; diff --git a/packages/ui-settings/src/defaults/crypto.ts b/packages/ui-settings/src/defaults/crypto.ts index 3401cfd3..08d36888 100644 --- a/packages/ui-settings/src/defaults/crypto.ts +++ b/packages/ui-settings/src/defaults/crypto.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Option } from '../types'; +import type { Option } from '../types'; export const CRYPTOS: Option[] = [ { diff --git a/packages/ui-settings/src/defaults/endpoints.ts b/packages/ui-settings/src/defaults/endpoints.ts index 01a00424..2b940009 100644 --- a/packages/ui-settings/src/defaults/endpoints.ts +++ b/packages/ui-settings/src/defaults/endpoints.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Option } from '../types'; +import type { Option } from '../types'; export const ENDPOINTS: Option[] = [{ info: 'local', diff --git a/packages/ui-settings/src/defaults/index.ts b/packages/ui-settings/src/defaults/index.ts index 5ab4ba0f..7115266b 100644 --- a/packages/ui-settings/src/defaults/index.ts +++ b/packages/ui-settings/src/defaults/index.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Option } from '../types'; +import type { Option } from '../types'; import { CRYPTOS, CRYPTOS_ETH } from './crypto'; import { ENDPOINTS, ENDPOINT_DEFAULT } from './endpoints'; diff --git a/packages/ui-settings/src/defaults/ledger.ts b/packages/ui-settings/src/defaults/ledger.ts index 72b087ba..d5730edf 100644 --- a/packages/ui-settings/src/defaults/ledger.ts +++ b/packages/ui-settings/src/defaults/ledger.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Option } from '../types'; +import type { Option } from '../types'; export const LEDGER_CONN_DEFAULT = 'none'; diff --git a/packages/ui-settings/src/defaults/ss58.ts b/packages/ui-settings/src/defaults/ss58.ts index 6f9fbd06..6ad44ced 100644 --- a/packages/ui-settings/src/defaults/ss58.ts +++ b/packages/ui-settings/src/defaults/ss58.ts @@ -1,7 +1,8 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Option } from '../types'; +import type { Option } from '../types'; + import { available } from '@polkadot/networks'; export const PREFIX_DEFAULT = -1; diff --git a/packages/ui-settings/src/defaults/ui.ts b/packages/ui-settings/src/defaults/ui.ts index 90ad6c81..c9e8eada 100644 --- a/packages/ui-settings/src/defaults/ui.ts +++ b/packages/ui-settings/src/defaults/ui.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Option } from '../types'; +import type { Option } from '../types'; import { isPolkadot } from './type'; diff --git a/packages/ui-shared/src/icons/beachball/colors.spec.ts b/packages/ui-shared/src/icons/beachball/colors.spec.ts index c91b155e..82cadb67 100644 --- a/packages/ui-shared/src/icons/beachball/colors.spec.ts +++ b/packages/ui-shared/src/icons/beachball/colors.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-shared authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { ColorGen } from './types'; +import type { ColorGen } from './types'; import newSeeder from './seeder'; import newColors from './colors'; diff --git a/packages/ui-shared/src/icons/beachball/colors.ts b/packages/ui-shared/src/icons/beachball/colors.ts index a1c7bf34..7d0a587c 100644 --- a/packages/ui-shared/src/icons/beachball/colors.ts +++ b/packages/ui-shared/src/icons/beachball/colors.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2016 Dan Finlay -import { ColorGen, Seeder } from './types'; +import type { ColorGen, Seeder } from './types'; import Color from 'color'; diff --git a/packages/ui-shared/src/icons/beachball/index.ts b/packages/ui-shared/src/icons/beachball/index.ts index 2b56f6e3..bd5e5b0b 100644 --- a/packages/ui-shared/src/icons/beachball/index.ts +++ b/packages/ui-shared/src/icons/beachball/index.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2016 Dan Finlay -import { Options } from '../types'; +import type { Options } from '../types'; import colors from './colors'; import newContainer from './container'; diff --git a/packages/ui-shared/src/icons/beachball/seeder.spec.ts b/packages/ui-shared/src/icons/beachball/seeder.spec.ts index e847bda0..0ea7f12e 100644 --- a/packages/ui-shared/src/icons/beachball/seeder.spec.ts +++ b/packages/ui-shared/src/icons/beachball/seeder.spec.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-shared authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Seeder } from './types'; +import type { Seeder } from './types'; import newSeeder from './seeder'; diff --git a/packages/ui-shared/src/icons/beachball/seeder.ts b/packages/ui-shared/src/icons/beachball/seeder.ts index 32b3ac62..ad36a1d1 100644 --- a/packages/ui-shared/src/icons/beachball/seeder.ts +++ b/packages/ui-shared/src/icons/beachball/seeder.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/ui-shared authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Seeder } from './types'; +import type { Seeder } from './types'; import { isU8a, stringToU8a } from '@polkadot/util'; diff --git a/packages/ui-shared/src/icons/beachball/shape/circle.ts b/packages/ui-shared/src/icons/beachball/shape/circle.ts index db4ae08a..0b954edd 100644 --- a/packages/ui-shared/src/icons/beachball/shape/circle.ts +++ b/packages/ui-shared/src/icons/beachball/shape/circle.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2016 Dan Finlay -import { Seeder } from '../types'; +import type { Seeder } from '../types'; import newCircle from '../svg/circle'; import { SHAPE_COUNT } from '../defaults'; diff --git a/packages/ui-shared/src/icons/beachball/shape/square.ts b/packages/ui-shared/src/icons/beachball/shape/square.ts index 23cdc4bc..d901b3ea 100644 --- a/packages/ui-shared/src/icons/beachball/shape/square.ts +++ b/packages/ui-shared/src/icons/beachball/shape/square.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2016 Dan Finlay -import { Seeder } from '../types'; +import type { Seeder } from '../types'; import newRect from '../svg/rect'; import { SHAPE_COUNT } from '../defaults'; diff --git a/packages/ui-shared/src/icons/polkadot.ts b/packages/ui-shared/src/icons/polkadot.ts index 57eb1cfb..4cbe37c0 100644 --- a/packages/ui-shared/src/icons/polkadot.ts +++ b/packages/ui-shared/src/icons/polkadot.ts @@ -6,7 +6,7 @@ // // https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx -import { Circle, Options } from './types'; +import type { Circle, Options } from './types'; import { blake2AsU8a, decodeAddress } from '@polkadot/util-crypto'; diff --git a/packages/vue-identicon/src/Identicon.ts b/packages/vue-identicon/src/Identicon.ts index 43faf236..488f0c42 100644 --- a/packages/vue-identicon/src/Identicon.ts +++ b/packages/vue-identicon/src/Identicon.ts @@ -1,7 +1,7 @@ // Copyright 2017-2020 @polkadot/vue-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { Prefix } from '@polkadot/util-crypto/address/types'; +import type { Prefix } from '@polkadot/util-crypto/address/types'; import Vue from 'vue'; import { isHex, isU8a, u8aToHex } from '@polkadot/util';