Skip to content

Commit

Permalink
fix: use PropsWithChildren
Browse files Browse the repository at this point in the history
@types/react v17 added the children prop automatically. This changed
with v18. Now, PropsWithChildren needs to be manually added.
  • Loading branch information
andipaetzold authored and staylor committed Apr 11, 2022
1 parent 02506ed commit 29ac5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ declare module 'react-helmet-async' {
};
}

export class HelmetProvider extends React.Component<ProviderProps> {
export class HelmetProvider extends React.Component<React.PropsWithChildren<ProviderProps>> {
static canUseDOM: boolean;
}
}

0 comments on commit 29ac5a8

Please sign in to comment.