diff --git a/types/react/experimental.d.ts b/types/react/experimental.d.ts index 7e681ca73229f6..d4d7f8e249e850 100644 --- a/types/react/experimental.d.ts +++ b/types/react/experimental.d.ts @@ -43,12 +43,13 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never }; declare module "." { export interface SuspenseProps { + // @enableCPUSuspense /** * The presence of this prop indicates that the content is computationally expensive to render. * In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data). * @see {@link https://github.com/facebook/react/pull/19936} */ - unstable_expectedLoadTime?: number | undefined; + defer?: boolean | undefined; } export type SuspenseListRevealOrder = "forwards" | "backwards" | "together" | "independent"; diff --git a/types/react/test/experimental.tsx b/types/react/test/experimental.tsx index b7fc2b40f9e7ab..3606bc972a4456 100644 --- a/types/react/test/experimental.tsx +++ b/types/react/test/experimental.tsx @@ -15,7 +15,7 @@ function suspenseTest() { function FlameChart() { return ( - + ); diff --git a/types/react/ts5.0/experimental.d.ts b/types/react/ts5.0/experimental.d.ts index 7e681ca73229f6..d4d7f8e249e850 100644 --- a/types/react/ts5.0/experimental.d.ts +++ b/types/react/ts5.0/experimental.d.ts @@ -43,12 +43,13 @@ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never }; declare module "." { export interface SuspenseProps { + // @enableCPUSuspense /** * The presence of this prop indicates that the content is computationally expensive to render. * In other words, the tree is CPU bound and not I/O bound (e.g. due to fetching data). * @see {@link https://github.com/facebook/react/pull/19936} */ - unstable_expectedLoadTime?: number | undefined; + defer?: boolean | undefined; } export type SuspenseListRevealOrder = "forwards" | "backwards" | "together" | "independent"; diff --git a/types/react/ts5.0/test/experimental.tsx b/types/react/ts5.0/test/experimental.tsx index b7fc2b40f9e7ab..3606bc972a4456 100644 --- a/types/react/ts5.0/test/experimental.tsx +++ b/types/react/ts5.0/test/experimental.tsx @@ -15,7 +15,7 @@ function suspenseTest() { function FlameChart() { return ( - + );