Skip to content

Commit

Permalink
feat: improve loadConfig types (#1844)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun authored Nov 26, 2023
1 parent e22d533 commit 25dc073
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/svgo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ export declare function loadConfig(
configFile: string,
cwd?: string
): Promise<Config>;
export declare function loadConfig(): Promise<Config | null>;
export declare function loadConfig(
configFile?: null,
cwd?: string
): Promise<Config | null>;

0 comments on commit 25dc073

Please sign in to comment.