Skip to content

Commit

Permalink
Export Props interfaces for to allow exported declarations
Browse files Browse the repository at this point in the history
Otherwise we get:

TS4023: Exported variable 'MyAsync' has or is using name 'PendingProps' from external module "<snip>/node_modules/react-async/dist-types/index" but cannot be named.
  • Loading branch information
nealeu authored Dec 31, 2019
1 parent 1351fd0 commit 3fd1151
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/react-async/src/Async.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ import {
ReducerAsyncState,
} from "./types"

interface InitialProps<T> {
export interface InitialProps<T> {
children?: InitialChildren<T>
persist?: boolean
}
interface PendingProps<T> {
export interface PendingProps<T> {
children?: PendingChildren<T>
initial?: boolean
}
interface FulfilledProps<T> {
export interface FulfilledProps<T> {
children?: FulfilledChildren<T>
persist?: boolean
}
interface RejectedProps<T> {
export interface RejectedProps<T> {
children?: RejectedChildren<T>
persist?: boolean
}
interface SettledProps<T> {
export interface SettledProps<T> {
children?: SettledChildren<T>
persist?: boolean
}
Expand Down

0 comments on commit 3fd1151

Please sign in to comment.