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

3.0.3 • Public • Published

Installation

npm install --save @types/macrotask

Summary

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

Details

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

index.d.ts

export as namespace macrotask;

export function run<TArgs extends any[]>(
    task: (...args: TArgs) => void,
    ...args: TArgs
): CancelToken;

export function clear(cancel: CancelToken): void;

export class CancelToken {
    // needed for TS to not accept just any object, only instances of CancelToken
    private __cancel__prop: "imaginary";
}

Additional Details

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

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/macrotask

Weekly Downloads

1

Version

3.0.3

License

MIT

Unpacked Size

3.26 kB

Total Files

5

Last publish

Collaborators

  • types