New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/run-sequence

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/run-sequence

TypeScript definitions for run-sequence

  • 2.2.0
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.2K
increased by6.66%
Maintainers
0
Weekly downloads
 
Created
Source

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

/// <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

Credits

These definitions were written by Keita Kagurazaka.

FAQs

Package last updated on 03 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc