Skip to content

Commit

Permalink
change React.Props to PropsWithChildren
Browse files Browse the repository at this point in the history
error TS2694: Namespace 'React' has no exported member 'Props'.
  • Loading branch information
byarianto committed Jul 16, 2023
1 parent 545a905 commit 4e113f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Countdown.tsx
Expand Up @@ -13,7 +13,7 @@ import {
} from './utils';

export interface CountdownProps
extends React.Props<Countdown>,
extends React.PropsWithChildren<Countdown>,
CountdownTimeDeltaFormatOptions,
Omit<LegacyCountdownProps, 'onComplete'> {
readonly date: Date | number | string;
Expand Down

0 comments on commit 4e113f8

Please sign in to comment.