Skip to content

Commit

Permalink
🤖 Merge PR #56261 [react-wait] Add explicit types for children by @ep…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 15, 2021
1 parent ac239ab commit 9c42178
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/react-wait/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import { ComponentType, FunctionComponent } from 'react';
import { ComponentType, FunctionComponent, ReactNode } from 'react';

export const Waiter: FunctionComponent;
export const Waiter: FunctionComponent<{ children?: ReactNode }>;

export interface WaitingContextWaitProps {
children?: ReactNode;
fallback: JSX.Element;
}

Expand Down

0 comments on commit 9c42178

Please sign in to comment.