Skip to content

Commit

Permalink
Replicated React.Props (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
byarianto authored Aug 10, 2024
1 parent 552237c commit 4a5c543
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ import {
formatTimeDelta,
} from './utils';

interface Props<T> {
children?: React.ReactNode;
key?: React.Key;
ref?: React.LegacyRef<T>;
}

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

0 comments on commit 4a5c543

Please sign in to comment.