1.1.3 • Published 7 months ago

@types/content-range v1.1.3

Weekly downloads
301
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/content-range

Summary

This package contains type definitions for content-range (https://github.com/neoziro/content-range).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-range.

index.d.ts

// Type definitions for content-range 1.1
// Project: https://github.com/neoziro/content-range
// Definitions by: Alex Brick <https://github.com/bricka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface ContentRangeFormatOptions {
    first?: number | undefined;
    last?: number | undefined;
    length: number | null;
    limit?: number | undefined;
    unit: string;
}

export interface ContentRangeParts {
    first: number | null;
    last: number | null;
    length: number | null;
    unit: string;
}

export function format(options: ContentRangeFormatOptions): string;
export function parse(str: string): ContentRangeParts | null;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:10 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alex Brick.