Skip to content
Permalink
Browse files
fix(types): KeepAlive match pattern should allow mixed array
  • Loading branch information
yyx990803 committed Jan 12, 2022
1 parent 92f11d6 commit 3007d5b4cafed1da445bc498f771bd2c79eda6fc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 3007d5b

Please sign in to comment.