Use import type (#406)

This commit is contained in:
Jaco Greeff
2020-12-01 13:33:48 +01:00
committed by GitHub
parent 57eece03d8
commit 487c638185
43 changed files with 68 additions and 64 deletions
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
+1 -1
View File
@@ -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';