From 52c09479e93daece48e5841d27f3c7e9b97a1b27 Mon Sep 17 00:00:00 2001 From: ntnyq Date: Tue, 6 May 2025 14:13:05 +0800 Subject: [PATCH] fix: fix `loadConfig` types (#2122) --- lib/svgo-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svgo-node.js b/lib/svgo-node.js index 2cefc009..d539e304 100644 --- a/lib/svgo-node.js +++ b/lib/svgo-node.js @@ -37,7 +37,7 @@ export * from './svgo.js'; * You can also specify relative or absolute path and customize current working * directory. * - * @type {(configFile: T | null, cwd?: string) => Promise} + * @type {(configFile?: T | null, cwd?: string) => Promise} */ export const loadConfig = async (configFile, cwd = process.cwd()) => { if (configFile != null) {