Skip to content

Commit 78c06cf

Browse files
committed
fix: fix loadConfig types
1 parent 60cbbcc commit 78c06cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/svgo-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export * from './svgo.js';
3737
* You can also specify relative or absolute path and customize current working
3838
* directory.
3939
*
40-
* @type {<T extends string>(configFile: T | null, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>}
40+
* @type {<T extends string>(configFile?: T | null, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>}
4141
*/
4242
export const loadConfig = async (configFile, cwd = process.cwd()) => {
4343
if (configFile != null) {

0 commit comments

Comments
 (0)