Move type-only imports (w/ verbatimModuleSyntax) (#5574)

This commit is contained in:
Jaco
2023-04-02 09:53:37 +03:00
committed by GitHub
parent 9a92089810
commit 186cfc93b5
24 changed files with 55 additions and 47 deletions
@@ -4,12 +4,11 @@
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import type { CodecClass, CodecTo } from '@polkadot/types-codec/types';
import type { ITuple } from '../types/interfaces.js';
import { TypeRegistry } from '@polkadot/types';
import { BTreeSet, Enum, I32, Struct, Text, Tuple, U32 } from '@polkadot/types-codec';
import { ITuple } from '../types/interfaces.js';
const registry = new TypeRegistry();
class U32TextTuple extends (Tuple.with([U32, Text]) as unknown as CodecClass<ITuple<[U32, Text]>>) {}
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { AnyString } from '../types/index.js';
import type { AnyString } from '../types/index.js';
type Mapper = (value: string) => string;