Skip to content

Commit 29ac5a8

Browse files
andipaetzoldstaylor
authored andcommitted
fix: use PropsWithChildren
@types/react v17 added the children prop automatically. This changed with v18. Now, PropsWithChildren needs to be manually added.
1 parent 02506ed commit 29ac5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ declare module 'react-helmet-async' {
8989
};
9090
}
9191

92-
export class HelmetProvider extends React.Component<ProviderProps> {
92+
export class HelmetProvider extends React.Component<React.PropsWithChildren<ProviderProps>> {
9393
static canUseDOM: boolean;
9494
}
9595
}

0 commit comments

Comments
 (0)