Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-i18next

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-i18next - npm Package Compare versions

Comparing version 7.6.0 to 7.6.1

4

react-i18next/package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc