Nothing Particularly Magnificent

    @types/ethjs-util
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    Installation

    npm install --save @types/ethjs-util

    Summary

    This package contains type definitions for ethjs-util (https://github.com/ethjs/ethjs-util#readme).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ethjs-util.

    index.d.ts

    // Type definitions for ethjs-util 0.1
    // Project: https://github.com/ethjs/ethjs-util#readme
    // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    export function isHexPrefixed(str: string): boolean;
    
    export function stripHexPrefix(str: string): string;
    
    export function padToEven(value: string): string;
    
    export function intToHex(i: number): string;
    
    export function intToBuffer(i: number): Buffer;
    
    export function getBinarySize(str: string): number;
    
    export function arrayContainsArray(superset: any[], subset: any[], some?: boolean): boolean;
    
    export function toUtf8(hex: string): string;
    
    export function toAscii(hex: string): string;
    
    export function fromUtf8(stringValue: string): string;
    
    export function fromAscii(stringValue: string): string;
    
    export function getKeys(params: any[], key: string, allowEmpty?: boolean): any[];
    
    export function isHexString(value: string, length?: number): boolean;

    Additional Details

    • Last updated: Thu, 23 Dec 2021 23:34:35 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by DefinitelyTyped.

    Keywords

    none

    Install

    npm i @types/ethjs-util

    DownloadsWeekly Downloads

    1,348

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    4.73 kB

    Total Files

    4

    Last publish

    Collaborators

    • types