From 3007d5b4cafed1da445bc498f771bd2c79eda6fc Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 12 Jan 2022 22:07:19 +0800 Subject: [PATCH] fix(types): KeepAlive match pattern should allow mixed array --- packages/runtime-core/src/components/KeepAlive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index c6180019..08e28616 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