fix(types): KeepAlive match pattern should allow mixed array

This commit is contained in:
Evan You 2022-01-12 22:07:19 +08:00
parent 92f11d6740
commit 3007d5b4ca

View File

@ -43,7 +43,7 @@ import { ComponentRenderContext } from '../componentPublicInstance'
import { devtoolsComponentAdded } from '../devtools' import { devtoolsComponentAdded } from '../devtools'
import { isAsyncWrapper } from '../apiAsyncComponent' import { isAsyncWrapper } from '../apiAsyncComponent'
type MatchPattern = string | RegExp | string[] | RegExp[] type MatchPattern = string | RegExp | (string | RegExp)[]
export interface KeepAliveProps { export interface KeepAliveProps {
include?: MatchPattern include?: MatchPattern