chore: typos in suspense events (#2131)

Removes the mention of the recede event that has been replaced.
This commit is contained in:
Cédric Exbrayat
2020-09-16 15:30:47 +02:00
committed by GitHub
parent be27bbc5ad
commit 7e68ddd354
2 changed files with 4 additions and 2 deletions

View File

@@ -49,6 +49,8 @@ expectError(<KeepAlive include={123} />)
// Suspense
expectType<JSX.Element>(<Suspense />)
expectType<JSX.Element>(<Suspense key="1" />)
expectType<JSX.Element>(<Suspense onResolve={() => {}} onFallback={() => {}} />)
expectType<JSX.Element>(
<Suspense onResolve={() => {}} onFallback={() => {}} onPending={() => {}} />
)
// @ts-expect-error
expectError(<Suspense onResolve={123} />)