UNPKG

@chainsafe/ssz-type-schema

Version:

Utility methods and types for describing an ssz object

16 lines (15 loc) 663 B
import { AnySSZType, FullSSZType } from "./types"; export declare function copyType(type: AnySSZType): AnySSZType; /** * Recursively expand an [[AnySSZType]] into a [[FullSSZType]] */ export declare function parseType(type: AnySSZType): FullSSZType; export declare function isFullSSZType(type: AnySSZType): boolean; export declare function isBasicType(type: FullSSZType): boolean; export declare function isCompositeType(type: FullSSZType): boolean; /** * A variable-size type is a list and all types that contain a variable-size type. * * All other types are said to be fixed-size */ export declare function isVariableSizeType(type: FullSSZType): boolean;