# @types/macrotask

> TypeScript definitions for macrotask

Latest version **3.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/macrotask
pnpm add @types/macrotask
yarn add @types/macrotask
bun add @types/macrotask
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2023-11-07 |
| First published | 2018-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51420 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/macrotask
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/macrotask
- npm.io page: https://npm.io/package/@types/macrotask

## Recent versions

- 3.0.3 (latest) — 2023-11-07
- 3.0.0 (ts3.0) — 2018-12-25
- 3.0.2 — 2023-10-18
- 3.0.1 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/macrotask/index.d.ts)
````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](https://github.com/BendingBender).

---
_Source: https://npm.io/package/@types/macrotask · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
