Skip to content

Commit

Permalink
fix(types): KeepAlive match pattern should allow mixed array
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 12, 2022
1 parent 92f11d6 commit 3007d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/components/KeepAlive.ts
Expand Up @@ -43,7 +43,7 @@ import { ComponentRenderContext } from '../componentPublicInstance'
import { devtoolsComponentAdded } from '../devtools'
import { isAsyncWrapper } from '../apiAsyncComponent'

type MatchPattern = string | RegExp | string[] | RegExp[]
type MatchPattern = string | RegExp | (string | RegExp)[]

export interface KeepAliveProps {
include?: MatchPattern
Expand Down

0 comments on commit 3007d5b

Please sign in to comment.