UNPKG

@polkadot/types-codec

Version:
17 lines (16 loc) 634 B
import type { Registry } from '../types/index.js'; import { Text } from '../native/Text.js'; /** * @name Type * @description * This is a extended version of Text, specifically to handle types. Here we rely fully * on what Text provides us, however we also adjust the types received from the runtime, * i.e. we remove the `T::` prefixes found in some types for consistency across implementation. */ export declare class Type extends Text { constructor(registry: Registry, value?: Text | Uint8Array | string); /** * @description Returns the base runtime type name for this instance */ toRawType(): string; }