# @types/node-fibers

> TypeScript definitions for node-fibers

Latest version **0.0.32** (published 2024-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/node-fibers
pnpm add @types/node-fibers
yarn add @types/node-fibers
bun add @types/node-fibers
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.32 |
| Published | 2024-01-30 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.0.32 (latest) — 2024-01-30
- 0.0.31 (ts4.5) — 2023-11-07
- 0.0.28 (ts2.0) — 2016-09-19
- 0.0.30 — 2023-10-18
- 0.0.29 — 2023-09-23
- 0.0.27 — 2016-07-14
- 0.0.26-alpha — 2016-07-08
- 0.0.25-alpha — 2016-07-04
- 0.0.24-alpha — 2016-07-02
- 0.0.23-alpha — 2016-07-01
- 0.0.22-alpha — 2016-07-01
- 0.0.21-alpha — 2016-05-25
- 0.0.20-alpha — 2016-05-20
- 0.0.15-alpha — 2016-05-19
- 0.0.14-alpha — 2016-05-17

## README

# Installation
> `npm install --save @types/node-fibers`

# Summary
This package contains type definitions for node-fibers (https://github.com/laverdet/node-fibers).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fibers.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fibers/index.d.ts)
````ts
interface Fiber {
    reset: () => any;
    run: (param?: any) => any;
    throwInto: (ex: any) => any;
}

declare module "fibers" {
    function Fiber(fn: Function): Fiber;

    namespace Fiber {
        export var current: Fiber;
        export function yield(value?: any): any;
    }

    export = Fiber;
}

declare module "fibers/future" {
    class Future {
        constructor();
        detach(): void;
        get(): any;
        isResolved(): boolean;
        proxy(future: Future): void;
        proxyErrors(futureOrList: any): Future;
        resolver(): Function;
        resolve(fn: Function): void;
        resolveSuccess(fn: Function): void;
        return(result?: any): void;
        throw(error: any): void;
        wait(): void;
        static wait(future: Future): any;
        static wait(future_list: Future[]): any;
        static wrap(fn: Function): Future;
    }

    export = Future;
}

````

### Additional Details
 * Last updated: Tue, 30 Jan 2024 21:35:45 GMT
 * Dependencies: none

# Credits
These definitions were written by [Cary Haynie](https://github.com/caryhaynie).

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