3.1.6 • Published 2 months ago

@types/pretty-quick v3.1.6

Weekly downloads
6,769
License
MIT
Repository
github
Last release
2 months ago

Installation

npm install --save @types/pretty-quick

Summary

This package contains type definitions for pretty-quick (https://github.com/azz/pretty-quick#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pretty-quick.

index.d.ts

// Type definitions for pretty-quick 3.1
// Project: https://github.com/azz/pretty-quick#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.2

import { ResolveConfigOptions } from 'prettier';

declare namespace prettyQuick {
    interface Options {
        config?: ResolveConfigOptions | undefined;
        since?: string | undefined;
        /** @default false */
        staged?: boolean | undefined;
        pattern?: string | string[] | undefined;
        /** @default true */
        restage?: boolean | undefined;
        /**
         * @default 'master' | 'default'
         */
        branch?: string | undefined;
        bail?: boolean | undefined;
        check?: boolean | undefined;
        ignorePath?: string | undefined;
        verbose?: boolean | undefined;
        onFoundSinceRevision?: ((name: string, revision: string) => void) | undefined;
        onFoundChangedFiles?: ((changedFiles: string[]) => void) | undefined;
        onPartiallyStagedFile?: ((file: string) => void) | undefined;
        onExamineFile?: ((file: string) => void) | undefined;
        onCheckFile?: ((file: string, isFormatted: boolean) => void) | undefined;
        onWriteFile?: ((file: string) => void) | undefined;
        // ...args support
        [key: string]: any;
    }

    interface Results {
        readonly success: boolean;
        readonly errors: string[];
    }
}

/**
 * Runs Prettier on your changed files.
 * Supported source control managers:
 * * Git
 * * Mercurial
 */
declare function prettyQuick(currentDirectory: string, options?: prettyQuick.Options): prettyQuick.Results;

export = prettyQuick;

Additional Details

  • Last updated: Thu, 12 May 2022 18:31:40 GMT
  • Dependencies: @types/prettier
  • Global values: none

Credits

These definitions were written by Piotr Błażejewicz.

3.1.6

2 months ago

3.1.3

8 months ago

3.1.2

10 months ago

3.1.5

6 months ago

3.1.4

7 months ago

3.1.1

2 years ago

3.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago