From 7e68ddd35401ff52ecb6b2b4b7028029d1bad5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Wed, 16 Sep 2020 15:30:47 +0200 Subject: [PATCH] chore: typos in suspense events (#2131) Removes the mention of the recede event that has been replaced. --- packages/runtime-core/src/components/Suspense.ts | 2 +- test-dts/tsx.test-d.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/components/Suspense.ts b/packages/runtime-core/src/components/Suspense.ts index 129e62c2..16204b6d 100644 --- a/packages/runtime-core/src/components/Suspense.ts +++ b/packages/runtime-core/src/components/Suspense.ts @@ -502,7 +502,7 @@ function createSuspenseBoundary( optimized } = suspense - // invoke @recede event + // invoke @fallback event const onFallback = vnode.props && vnode.props.onFallback if (isFunction(onFallback)) { onFallback() diff --git a/test-dts/tsx.test-d.tsx b/test-dts/tsx.test-d.tsx index 70db5f40..43a2464b 100644 --- a/test-dts/tsx.test-d.tsx +++ b/test-dts/tsx.test-d.tsx @@ -49,6 +49,8 @@ expectError() // Suspense expectType() expectType() -expectType( {}} onFallback={() => {}} />) +expectType( + {}} onFallback={() => {}} onPending={() => {}} /> +) // @ts-expect-error expectError()