@types/react-i18next
Advanced tools
Comparing version 7.6.0 to 7.6.1
{ | ||
"name": "@types/react-i18next", | ||
"version": "7.6.0", | ||
"version": "7.6.1", | ||
"description": "TypeScript definitions for react-i18next", | ||
@@ -28,4 +28,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "9eda85b398707f922fff5de947d40fe3ee1ee574ebccf6feb89e1ac779c7faac", | ||
"typesPublisherContentHash": "22e22b8ae93f4ae62ff22edd2dd3fd534a0873caa46bc3ec3a754122ce13b522", | ||
"typeScriptVersion": "2.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 24 Apr 2018 23:31:50 GMT | ||
* Last updated: Wed, 25 Apr 2018 03:57:54 GMT | ||
* Dependencies: i18next, react | ||
@@ -14,0 +14,0 @@ * Global values: reactI18Next |
@@ -23,4 +23,3 @@ import * as React from "react"; | ||
// Diff / Omit taken from https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-311923766 | ||
type Diff<T extends string, U extends string> = ({[P in T]: P } & {[P in U]: never } & { [x: string]: never })[T]; | ||
type Omit<T, K extends string> = Pick<T, Diff<keyof T, K>>; | ||
type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>; | ||
@@ -36,7 +35,7 @@ type InjectedProps = InjectedI18nProps & InjectedTranslateProps; | ||
export type InferableComponentEnhancerWithProps<TTranslateFunctionName extends string> = | ||
<P extends {}>(component: React.ComponentClass<P> | React.StatelessComponent<P>) => | ||
<P extends { [key: string]: any }>(component: React.ComponentClass<P> | React.StatelessComponent<P>) => | ||
React.ComponentClass<Omit<P, keyof InjectedI18nProps | TTranslateFunctionName> & TranslateHocProps>; | ||
export type InferableComponentEnhancerWithPropsAndRef<TTranslateFunctionName extends string> = | ||
<P extends {}>(component: React.ComponentClass<P> | React.StatelessComponent<P>) => | ||
<P extends { [key: string]: any }>(component: React.ComponentClass<P> | React.StatelessComponent<P>) => | ||
WrapperComponentClass<Omit<P, keyof InjectedI18nProps | TTranslateFunctionName>, P>; | ||
@@ -43,0 +42,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10746
197