@types/byte-size
TypeScript definitions for byte-size
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/byte-size 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/byte-size

Summary

This package contains type definitions for byte-size (https://github.com/75lb/byte-size#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size.

index.d.ts

// Type definitions for byte-size 8.1
// Project: https://github.com/75lb/byte-size#readme
// Definitions by: lntel <https://github.com/lntel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface ByteSizeOptions {
    precision?: number;
    units?: string;
    customUnits?: object;
    toStringFn?: () => string;
    locale?: string | string[];
}

export interface ByteSizeResult {
    value: string;
    unit: string;
    long: string;
    toString: () => string;
}

declare function byteSize(bytes: number, options?: ByteSizeOptions): ByteSizeResult;

declare namespace byteSize {
    function defaultOptions(options: ByteSizeOptions): void;
}

export default byteSize;

Additional Details

  • Last updated: Tue, 14 Sep 2021 21:01:31 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by lntel.

Current Tags

  • 8.1.0                                ...           latest (5 years ago)
  • 8.1.0                                ...           ts3.7 (5 years ago)
  • 8.1.0                                ...           ts3.8 (5 years ago)
  • 8.1.0                                ...           ts3.9 (5 years ago)
  • 8.1.0                                ...           ts4.0 (5 years ago)
  • 8.1.0                                ...           ts4.1 (5 years ago)
  • 8.1.0                                ...           ts4.2 (5 years ago)
  • 8.1.0                                ...           ts4.3 (5 years ago)
  • 8.1.0                                ...           ts4.4 (5 years ago)
  • 8.1.0                                ...           ts4.5 (5 years ago)
  • 8.1.0                                ...           ts4.6 (5 years ago)
  • 8.1.0                                ...           ts4.7 (5 years ago)
  • 8.1.0                                ...           ts4.8 (5 years ago)
  • 8.1.0                                ...           ts4.9 (5 years ago)
  • 8.1.0                                ...           ts5.0 (5 years ago)
  • 8.1.0                                ...           ts5.1 (5 years ago)
  • 8.1.0                                ...           ts5.2 (5 years ago)
  • 8.1.0                                ...           ts5.3 (5 years ago)

1 Versions

  • 8.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |