Skip to content

Commit

Permalink
fix(types): use React.PropsWithChildren with HeaderNavigationProps (u…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgorbatchev authored Oct 4, 2022
1 parent c5b0e46 commit da4e460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/header-navigation/types.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import * as React from 'react';
import type { OverrideT } from '../helpers/overrides.js';

export type OverridesT = {
Expand All @@ -13,4 +14,5 @@ export type OverridesT = {

export type PropsT = {
overrides: OverridesT,
children?: React.Node,
};
4 changes: 2 additions & 2 deletions src/header-navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export type HeaderNavigationOverrides = {
Root?: Override;
};

export type HeaderNavigationProps = {
export type HeaderNavigationProps = React.PropsWithChildren<{
overrides: HeaderNavigationOverrides;
};
}>;

0 comments on commit da4e460

Please sign in to comment.