# @types/run-sequence

> TypeScript definitions for run-sequence

Latest version **2.2.0** (published 2024-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/run-sequence
pnpm add @types/run-sequence
yarn add @types/run-sequence
bun add @types/run-sequence
```

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2024-11-03 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (3)

- [@types/gulp](https://npm.io/package/@types/gulp.md) >=3.8
- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/undertaker](https://npm.io/package/@types/undertaker.md) >=1.2.6

## Recent versions

- 2.2.0 (latest) — 2024-11-03
- 0.0.34 (ts4.5) — 2023-11-21
- 0.0.30 (ts3.6) — 2017-11-09
- 0.0.33 — 2023-11-07
- 0.0.32 — 2023-10-18
- 0.0.31 — 2023-09-27
- 0.0.29 — 2017-03-15
- 0.0.28 — 2016-09-19
- 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
- … 3 more at https://npm.io/package/@types/run-sequence/versions

## README

# Installation
> `npm install --save @types/run-sequence`

# Summary
This package contains type definitions for run-sequence (https://github.com/OverZealous/run-sequence).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/run-sequence.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/run-sequence/index.d.ts)
````ts
/// <reference types="node" />

import gulp = require("gulp");
import undertaker = require("undertaker");

declare namespace r {
    type Task = string | string[] | null | undefined;

    interface RunSequence {
        /**
         * Runs a sequence of gulp tasks in the specified order.
         * This function is designed to solve the situation where
         * you have defined run-order, but choose not to or cannot use dependencies.
         *
         * Each argument to run-sequence is run in order.
         * This works by listening to the `task_stop` and `task_err` events,
         * and keeping track of which tasks have been completed.
         * You can still run some of the tasks in parallel,
         * by providing an array of task names for one or more of the arguments.
         *
         * If the final argument is a function, it will be used as a callback
         * after all the functions are either finished or an error has occurred.
         */
        (...tasks: [...r.Task[], undertaker.TaskCallback]): NodeJS.ReadWriteStream;
        (...tasks: r.Task[]): NodeJS.ReadWriteStream;

        /**
         * If you have a complex gulp setup with your tasks split up across different files,
         * you may get the error that run-sequence is unable to find your tasks.
         * In this case, you can configure run-sequence to look at the gulp within the submodule.
         */
        use(gulp: gulp.Gulp): RunSequence;

        /**
         * There are a few global options you can configure on the `runSequence` function.
         *
         * Please note these are **global to the module**,
         * and once set will affect every use of `runSequence`.
         */
        options: {
            /**
             * When set to `false`, this suppresses the full stack trace from errors captured
             * during a sequence.
             *
             * @default true
             */
            showErrorStackTrace: boolean;

            /**
             * When set to `true`, this enables you to pass falsey values
             * in which will be stripped from the task set before validation and sequencing.
             *
             * @default false
             */
            ignoreUndefinedTasks: boolean;
        };
    }
}

declare const r: r.RunSequence;
export = r;

````

### Additional Details
 * Last updated: Sun, 03 Nov 2024 04:02:17 GMT
 * Dependencies: [@types/gulp](https://npmjs.com/package/@types/gulp), [@types/node](https://npmjs.com/package/@types/node), [@types/undertaker](https://npmjs.com/package/@types/undertaker)

# Credits
These definitions were written by [Keita Kagurazaka](https://github.com/k-kagurazaka).

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