Skip to content

Commit 3007d5b

Browse files
committed
fix(types): KeepAlive match pattern should allow mixed array
1 parent 92f11d6 commit 3007d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/runtime-core/src/components/KeepAlive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { ComponentRenderContext } from '../componentPublicInstance'
4343
import { devtoolsComponentAdded } from '../devtools'
4444
import { isAsyncWrapper } from '../apiAsyncComponent'
4545

46-
type MatchPattern = string | RegExp | string[] | RegExp[]
46+
type MatchPattern = string | RegExp | (string | RegExp)[]
4747

4848
export interface KeepAliveProps {
4949
include?: MatchPattern

0 commit comments

Comments
 (0)