]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): KeepAlive match pattern should allow mixed array
authorEvan You <yyx990803@gmail.com>
Wed, 12 Jan 2022 14:07:19 +0000 (22:07 +0800)
committerEvan You <yyx990803@gmail.com>
Wed, 12 Jan 2022 14:07:19 +0000 (22:07 +0800)
packages/runtime-core/src/components/KeepAlive.ts

index c6180019f86cdc7507761f3da48fdcf3b8abe000..08e28616e9c294fd3d24c1c5b3ccef6fff4f78f4 100644 (file)
@@ -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