Skip to content

Commit

Permalink
Merge 22364d3 into 2a96bb2
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Feb 11, 2020
2 parents 2a96bb2 + 22364d3 commit 7d7567b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ declare module 'replace-in-file' {
export function sync(config: ReplaceInFileConfig): ReplaceResult[];
}

export function sync(config: ReplaceInFileConfig): ReplaceResult[];

export type From = string | RegExp | FromCallback;
export type To = string | ToCallback;

export interface ReplaceInFileConfig {
files: string | string[];
ignore?: string | string[];
from: string | RegExp | string[] | RegExp[] | FromCallback;
to: string | string[] | ToCallback;
from: From | Array<From>;
to: To | Array<To>;
countMatches?: boolean;
allowEmptyPaths?: boolean,
disableGlobs?: boolean,
Expand Down

0 comments on commit 7d7567b

Please sign in to comment.