npm.io
3.0.3 • Published 2 years ago

@types/macrotask

Licence
MIT
Version
3.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.