Skip to content

Commit

Permalink
fix: Add explicit children prop to provider component (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusunger authored Nov 15, 2022
1 parent a916e5b commit b21b322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/awaitEventEmitterContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createContext } from 'react';
import React, { createContext, PropsWithChildren } from 'react';
import { StoreAwaitEventEmitter } from '../StoreAwaitEventEmitter';

export const AwaitEventEmitterContext = createContext<StoreAwaitEventEmitter | undefined>(undefined);
Expand All @@ -13,6 +13,6 @@ interface StoreAwaitProviderProps {
* @param props - The provider props
* @returns - The rendered component
*/
export const StoreAwaitProvider: React.FC<StoreAwaitProviderProps> = props => (
export const StoreAwaitProvider: React.FC<PropsWithChildren<StoreAwaitProviderProps>> = props => (
<AwaitEventEmitterContext.Provider value={props.emitter}>{props.children}</AwaitEventEmitterContext.Provider>
);

0 comments on commit b21b322

Please sign in to comment.