We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loadConfig
1 parent 60cbbcc commit 78c06cfCopy full SHA for 78c06cf
lib/svgo-node.js
@@ -37,7 +37,7 @@ export * from './svgo.js';
37
* You can also specify relative or absolute path and customize current working
38
* directory.
39
*
40
- * @type {<T extends string>(configFile: T | null, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>}
+ * @type {<T extends string>(configFile?: T | null, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>}
41
*/
42
export const loadConfig = async (configFile, cwd = process.cwd()) => {
43
if (configFile != null) {
0 commit comments