Skip to content

Commit c7b701c

Browse files
authored
Merge pull request #876 from justinbup/add-explicit-return-types
fix: add explicit return types
2 parents 8de2517 + e96b0be commit c7b701c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/numeric_format.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export function useNumericFormat<BaseType = InputAttributes>(
566566

567567
export default function NumericFormat<BaseType = InputAttributes>(
568568
props: NumericFormatProps<BaseType>,
569-
) {
569+
): React.ReactElement {
570570
const numericFormatProps = useNumericFormat(props);
571571

572572
return <NumberFormatBase {...numericFormatProps} />;

src/pattern_format.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export function usePatternFormat<BaseType = InputAttributes>(
265265

266266
export default function PatternFormat<BaseType = InputAttributes>(
267267
props: PatternFormatProps<BaseType>,
268-
) {
268+
): React.ReactElement {
269269
const patternFormatProps = usePatternFormat(props);
270270

271271
return <NumberFormatBase {...patternFormatProps} />;

0 commit comments

Comments
 (0)