Skip to content

Commit

Permalink
build: fixed type imports for tsdx
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Apr 15, 2022
1 parent 196c536 commit de4ef2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/If.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment, type FC, type ReactElement } from 'react';
import React, { Fragment, FC, ReactElement } from 'react';
import { Else } from './Else';
import { Fallback } from './Fallback';
import { getConditionResult } from './getConditionResults';
Expand Down
2 changes: 1 addition & 1 deletion src/IfAsync.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment, useEffect, useMemo, useRef, useState, type PropsWithChildren, type ReactElement } from 'react';
import React, { Fragment, useEffect, useMemo, useRef, useState, PropsWithChildren, ReactElement } from 'react';
import { Else } from './Else';
import { Fallback } from './Fallback';
import { useSingleton } from './hooks';
Expand Down
4 changes: 2 additions & 2 deletions src/Switch.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { type ReactElement } from 'react';
import React, { ReactElement } from 'react';
import { Case } from './Case';
import { Default } from './Default';
import { getConditionResult } from './getConditionResults';
Expand All @@ -11,7 +11,7 @@ import type { FCWithImplicitChildren } from './types';
* This component can contain any number of `<Case />` and one `<Default />` blocks
* @param __namedParameters Children to pass into the `<Switch />` component
*/
export const Switch: FCWithImplicitChildren<'without-function-children'> = ({ children }) => {
export const Switch: FCWithImplicitChildren = ({ children }) => {
// -- Inspired by react-router --

// We use React.Children.forEach instead of React.Children.toArray().find()
Expand Down

0 comments on commit de4ef2a

Please sign in to comment.