chore: update props types to use PropsWithChildren

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
Oleg S
2023-08-31 16:07:55 -04:00
parent cc2efe286a
commit 13f3b3491e
25 changed files with 77 additions and 61 deletions
@@ -30,7 +30,7 @@ describe('VersionedContext', () => {
const Context = createVersionedContext<ContextType>('test-context-1');
const rendered = renderHook(() => useContext(Context), {
wrapper: ({ children }) => (
wrapper: ({ children }: React.PropsWithChildren<{}>) => (
<Context.Provider
value={createVersionedValueMap({ 1: '1v1', 2: '1v2' })}
>
@@ -47,7 +47,7 @@ describe('VersionedContext', () => {
const Context = createVersionedContext<ContextType>('test-context-2');
const rendered = renderHook(() => useVersionedContext('test-context-2'), {
wrapper: ({ children }) => (
wrapper: ({ children }: React.PropsWithChildren<{}>) => (
<Context.Provider
value={createVersionedValueMap({ 1: '2v1', 2: '2v2' })}
>