Skip to content

Commit

Permalink
Demonstrate and fix some type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Feb 12, 2021
1 parent 7e53485 commit 629ece7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/react-i18n/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* External dependencies
*/
// Disable reason: Type-only import, this is fine. See https://github.com/typescript-eslint/typescript-eslint/issues/2661
// eslint-disable-next-line no-restricted-imports
import type { ComponentType, PropsWithChildren } from 'react';

/**
* WordPress dependencies
*/
Expand All @@ -8,9 +15,7 @@ import {
useMemo,
useReducer,
} from '@wordpress/element';
import { defaultI18n } from '@wordpress/i18n';
import type { I18n } from '@wordpress/i18n';
import type { ComponentType, PropsWithChildren } from 'react';
import { defaultI18n, I18n } from '@wordpress/i18n';
import type { Subtract } from 'utility-types';

interface I18nContextProps {
Expand Down

0 comments on commit 629ece7

Please sign in to comment.