@types/pretty-quick
TypeScript definitions for pretty-quick
Last updated 4 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/pretty-quick 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.1.1                                ...           latest (4 years ago)
  • 2.0.0                                ...           ts2.8 (6 years ago)
  • 2.0.0                                ...           ts2.9 (6 years ago)
  • 2.0.0                                ...           ts3.0 (6 years ago)
  • 2.0.0                                ...           ts3.1 (6 years ago)
  • 2.0.0                                ...           ts3.2 (6 years ago)
  • 2.0.0                                ...           ts3.3 (6 years ago)
  • 2.0.0                                ...           ts3.4 (6 years ago)
  • 2.0.0                                ...           ts3.5 (6 years ago)
  • 2.0.0                                ...           ts3.6 (6 years ago)
  • 3.1.0                                ...           ts3.7 (4 years ago)
  • 3.1.0                                ...           ts3.8 (4 years ago)
  • 3.1.0                                ...           ts3.9 (4 years ago)
  • 3.1.0                                ...           ts4.0 (4 years ago)
  • 3.1.0                                ...           ts4.1 (4 years ago)
  • 3.1.1                                ...           ts4.2 (4 years ago)
  • 3.1.1                                ...           ts4.3 (4 years ago)
  • 3.1.1                                ...           ts4.4 (4 years ago)
  • 3.1.1                                ...           ts4.5 (4 years ago)
  • 3.1.1                                ...           ts4.6 (4 years ago)
  • 3.1.1                                ...           ts4.7 (4 years ago)
  • 3.1.1                                ...           ts4.8 (4 years ago)
  • 3.1.1                                ...           ts4.9 (4 years ago)

5 Versions

  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |