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

0.0.32 • Public • Published

Installation

npm install --save @types/precise

Summary

This package contains type definitions for precise (https://www.npmjs.org/package/precise).

Details

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

index.d.ts

/**
 * Precise factory
 */
declare function _precise(): _precise.Precise;

declare namespace _precise {
    class Precise {
        constructor();

        /**
         * Starts a timer
         */
        start(): Precise;

        /**
         * Stops a timer
         */
        stop(): Precise;

        /**
         * Returns the nanoseconds from `start()` to `stop()`
         */
        diff(): number;
    }
}

export = _precise;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Peter Harris.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/precise

Weekly Downloads

18

Version

0.0.32

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types