Skip to content

Commit 33f877f

Browse files
authored
Merge pull request #4 from hetao92/main
fix: fix ts error
2 parents b7619e6 + 0c9f6e0 commit 33f877f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/eslintFactory.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export function resolveSubOptions<K extends keyof OptionsConfig>(
117117
options: OptionsConfig,
118118
key: K,
119119
): ResolvedOptions<OptionsConfig[K]> {
120-
return typeof options[key] === 'boolean' ? ({} as any) : options[key] || {};
120+
return typeof options[key] === 'boolean'
121+
? ({} as any)
122+
: (options[key] as any) || {};
121123
}
122124

123125
export function getOverrides<K extends keyof OptionsConfig>(

0 commit comments

Comments
 (0)