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

1.8.3 • Public • Published

Installation

npm install --save @types/etag

Summary

This package contains type definitions for etag (https://github.com/jshttp/etag#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/etag.

/// <reference types="node" />
export = etag;

declare function etag(entity: string | Buffer | etag.StatsLike, options?: etag.Options): string;

declare namespace etag {
    interface Options {
        weak?: boolean | undefined;
    }

    interface StatsLike {
        ctime: Date;
        mtime: Date;
        ino: number;
        size: number;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/etag

Weekly Downloads

263,840

Version

1.8.3

License

MIT

Unpacked Size

3.3 kB

Total Files

5

Last publish

Collaborators

  • types