@types/lint-staged
TypeScript icon, indicating that this package has built-in type declarations

13.3.0 • Public • Published

Installation

npm install --save @types/lint-staged

Summary

This package contains type definitions for lint-staged (https://github.com/okonet/lint-staged#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lint-staged.

index.d.ts

// This exists so lint-staged.config.js can do this:
// /**
//  * @type {import('lint-staged').Config}
// */
// export default { ... };

export type Command = string;

export type Commands = Command[] | Command;

export type ConfigFn = (filenames: string[]) => Commands | Promise<Commands>;

export type Config = ConfigFn | { [key: string]: Command | ConfigFn | Array<Command | ConfigFn> };

Additional Details

  • Last updated: Sat, 16 Dec 2023 11:35:38 GMT
  • Dependencies: none

Credits

These definitions were written by Andrey Okonetchnikov, and Saiichi Hashimoto.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/lint-staged

Weekly Downloads

134,926

Version

13.3.0

License

MIT

Unpacked Size

3.58 kB

Total Files

5

Last publish

Collaborators

  • types