Skip to content

Commit

Permalink
fix types (#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
reichhartd committed Jan 2, 2022
1 parent 83cc2b6 commit 566a984
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
19 changes: 0 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.7",
"@testing-library/react-hooks": "^3.4.2",
"@types/react-native": "^0.66.6",
"all-contributors-cli": "^6.20.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.3",
Expand Down
5 changes: 2 additions & 3 deletions ts4.1/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import i18next, {
TFunctionResult,
} from 'i18next';
import * as React from 'react';
import { TextProps } from 'react-native';

type Subtract<T extends K, K> = Omit<T, keyof K>;

Expand Down Expand Up @@ -239,7 +238,7 @@ export type TransProps<
K extends TFuncKey<N, TKPrefix> extends infer A ? A : never,
N extends Namespace = DefaultNamespace,
TKPrefix = undefined,
E extends React.HTMLProps<HTMLDivElement> | TextProps
E = React.HTMLProps<HTMLDivElement>
> = E & {
children?: React.ReactNode;
components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
Expand All @@ -259,7 +258,7 @@ export function Trans<
K extends TFuncKey<N, TKPrefix> extends infer A ? A : never,
N extends Namespace = DefaultNamespace,
TKPrefix extends KeyPrefix<N> = undefined,
E extends React.HTMLProps<HTMLDivElement> | TextProps = React.HTMLProps<HTMLDivElement>
E = React.HTMLProps<HTMLDivElement>
>(props: TransProps<K, N, TKPrefix, E>): React.ReactElement;

export function useSSR(initialI18nStore: Resource, initialLanguage: string): void;
Expand Down

0 comments on commit 566a984

Please sign in to comment.