@@ -42,61 +42,6 @@ declare module '.' {
4242 unstable_expectedLoadTime ?: number | undefined ;
4343 }
4444
45- export type SuspenseListRevealOrder = 'forwards' | 'backwards' | 'together' ;
46- export type SuspenseListTailMode = 'collapsed' | 'hidden' ;
47-
48- export interface SuspenseListCommonProps {
49- /**
50- * Note that SuspenseList require more than one child;
51- * it is a runtime warning to provide only a single child.
52- *
53- * It does, however, allow those children to be wrapped inside a single
54- * level of `<React.Fragment>`.
55- */
56- children : ReactElement | Iterable < ReactElement > ;
57- }
58-
59- interface DirectionalSuspenseListProps extends SuspenseListCommonProps {
60- /**
61- * Defines the order in which the `SuspenseList` children should be revealed.
62- */
63- revealOrder : 'forwards' | 'backwards' ;
64- /**
65- * Dictates how unloaded items in a SuspenseList is shown.
66- *
67- * - By default, `SuspenseList` will show all fallbacks in the list.
68- * - `collapsed` shows only the next fallback in the list.
69- * - `hidden` doesn’t show any unloaded items.
70- */
71- tail ?: SuspenseListTailMode | undefined ;
72- }
73-
74- interface NonDirectionalSuspenseListProps extends SuspenseListCommonProps {
75- /**
76- * Defines the order in which the `SuspenseList` children should be revealed.
77- */
78- revealOrder ?: Exclude < SuspenseListRevealOrder , DirectionalSuspenseListProps [ 'revealOrder' ] > | undefined ;
79- /**
80- * The tail property is invalid when not using the `forwards` or `backwards` reveal orders.
81- */
82- tail ?: never | undefined ;
83- }
84-
85- export type SuspenseListProps = DirectionalSuspenseListProps | NonDirectionalSuspenseListProps ;
86-
87- /**
88- * `SuspenseList` helps coordinate many components that can suspend by orchestrating the order
89- * in which these components are revealed to the user.
90- *
91- * When multiple components need to fetch data, this data may arrive in an unpredictable order.
92- * However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
93- * until previous items have been displayed (this behavior is adjustable).
94- *
95- * @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
96- * @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
97- */
98- export const SuspenseList : ExoticComponent < SuspenseListProps > ;
99-
10045 // must be synchronous
10146 export type TransitionFunction = ( ) => VoidOrUndefinedOnly ;
10247 // strange definition to allow vscode to show documentation on the invocation
0 commit comments