1 | import { ResolveConfigOptions } from "prettier";
|
2 |
|
3 | declare namespace prettyQuick {
|
4 | interface Options {
|
5 | config?: ResolveConfigOptions | undefined;
|
6 | since?: string | undefined;
|
7 |
|
8 | staged?: boolean | undefined;
|
9 | pattern?: string | string[] | undefined;
|
10 |
|
11 | restage?: boolean | undefined;
|
12 | |
13 |
|
14 |
|
15 | branch?: string | undefined;
|
16 | bail?: boolean | undefined;
|
17 | check?: boolean | undefined;
|
18 | ignorePath?: string | undefined;
|
19 | verbose?: boolean | undefined;
|
20 | onFoundSinceRevision?: ((name: string, revision: string) => void) | undefined;
|
21 | onFoundChangedFiles?: ((changedFiles: string[]) => void) | undefined;
|
22 | onPartiallyStagedFile?: ((file: string) => void) | undefined;
|
23 | onExamineFile?: ((file: string) => void) | undefined;
|
24 | onCheckFile?: ((file: string, isFormatted: boolean) => void) | undefined;
|
25 | onWriteFile?: ((file: string) => void) | undefined;
|
26 | // ...args support
|
27 | [key: string]: any;
|
28 | }
|
29 |
|
30 | interface Results {
|
31 | readonly success: boolean;
|
32 | readonly errors: string[];
|
33 | }
|
34 | }
|
35 |
|
36 | /**
|
37 | * Runs Prettier on your changed files.
|
38 | * Supported source control managers:
|
39 | * * Git
|
40 | * * Mercurial
|
41 | */
|
42 | declare function prettyQuick(currentDirectory: string, options?: prettyQuick.Options): prettyQuick.Results;
|
43 |
|
44 | export = prettyQuick;
|
45 |
|
\ | No newline at end of file |