From: Evan You Date: Wed, 12 Jan 2022 14:07:19 +0000 (+0800) Subject: fix(types): KeepAlive match pattern should allow mixed array X-Git-Tag: v3.2.27~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3007d5b4cafed1da445bc498f771bd2c79eda6fc;p=thirdparty%2Fvuejs%2Fcore.git fix(types): KeepAlive match pattern should allow mixed array --- diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index c6180019f8..08e28616e9 100644 --- a/packages/runtime-core/src/components/KeepAlive.ts +++ b/packages/runtime-core/src/components/KeepAlive.ts @@ -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