# @types/nanoscheduler

> TypeScript definitions for nanoscheduler

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

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2020-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts3.0) — 2020-07-06
- 1.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/nanoscheduler`

# Summary
This package contains type definitions for nanoscheduler (https://github.com/choojs/nanoscheduler#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nanoscheduler.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nanoscheduler/index.d.ts)
````ts
/**
 * Create a new scheduler instance.
 * The instance is shared as a singleton on window (if available).
 */
declare function createScheduler(): scheduler.NanoScheduler;

declare namespace scheduler {
    /**
     * Schedule work to be completed when the user agent is idle. Weighs 270 bytes compressed.
     */
    abstract class NanoScheduler {
        constructor(hasWindow: boolean);
        /**
         * Push a callback into the scheduler, to be executed when the user agent is idle.
         */
        push(cb: () => void): void;
        schedule(): void;
        setTimeout(cb: () => void): void;
    }
}

export = createScheduler;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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