Skip to content

Commit e7d01c7

Browse files
committed
Fix line wrapping.
1 parent a937a3f commit e7d01c7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

packages/react-async/src/types.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import React from "react"
22

3-
export type AsyncChildren<T> = ((state: AsyncState<T>) => React.ReactNode) | React.ReactNode
4-
export type InitialChildren<T> = ((state: AsyncInitial<T>) => React.ReactNode) | React.ReactNode
5-
export type PendingChildren<T> = ((state: AsyncPending<T>) => React.ReactNode) | React.ReactNode
6-
export type FulfilledChildren<T> =
7-
| ((data: T, state: AsyncFulfilled<T>) => React.ReactNode)
8-
| React.ReactNode
9-
export type RejectedChildren<T> =
10-
| ((error: Error, state: AsyncRejected<T>) => React.ReactNode)
11-
| React.ReactNode
12-
export type SettledChildren<T> =
13-
| ((state: AsyncFulfilled<T> | AsyncRejected<T>) => React.ReactNode)
14-
| React.ReactNode
3+
export type AsyncChildren<T> = (state: AsyncState<T>) => React.ReactNode | React.ReactNode
4+
export type InitialChildren<T> = (state: AsyncInitial<T>) => React.ReactNode | React.ReactNode
5+
export type PendingChildren<T> = (state: AsyncPending<T>) => React.ReactNode | React.ReactNode
6+
export type FulfilledChildren<T> = (
7+
data: T,
8+
state: AsyncFulfilled<T>
9+
) => React.ReactNode | React.ReactNode
10+
export type RejectedChildren<T> = (
11+
error: Error,
12+
state: AsyncRejected<T>
13+
) => React.ReactNode | React.ReactNode
14+
export type SettledChildren<T> = (
15+
state: AsyncFulfilled<T> | AsyncRejected<T>
16+
) => React.ReactNode | React.ReactNode
1517

1618
export type PromiseFn<T> = (props: AsyncProps<T>, controller: AbortController) => Promise<T>
1719
export type DeferFn<T> = (

0 commit comments

Comments
 (0)