mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 22:47:52 +02:00
refactor: fix more type-aware linting errors (#7479)
This commit is contained in:
parent
bf1513a3e3
commit
624735bd92
51 changed files with 192 additions and 189 deletions
|
@ -75,7 +75,7 @@ type FacetFilters = Required<
|
|||
function mergeFacetFilters(f1: FacetFilters, f2: FacetFilters): FacetFilters {
|
||||
const normalize = (
|
||||
f: FacetFilters,
|
||||
): readonly string[] | ReadonlyArray<string | readonly string[]> =>
|
||||
): readonly string[] | readonly (string | readonly string[])[] =>
|
||||
typeof f === 'string' ? [f] : f;
|
||||
return [...normalize(f1), ...normalize(f2)] as FacetFilters;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue