Move type-only imports (w/ verbatimModuleSyntax) (#5574)
This commit is contained in:
@@ -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,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user