🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@types/react-is-deprecated

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-is-deprecated - npm Package Compare versions

Comparing version
0.1.13
to
0.1.14
+38
-19
react-is-deprecated/index.d.ts
declare module "react-is-deprecated" {
import { ReactPropTypes, Requireable, ValidationMap, Validator } from "react";
import type * as PropTypes from "prop-types";
export function deprecate<T>(validator: Validator<T>, message: string): Validator<T>;
interface PropTypesValidators {
any: typeof PropTypes.any;
array: typeof PropTypes.array;
bool: typeof PropTypes.bool;
func: typeof PropTypes.func;
number: typeof PropTypes.number;
object: typeof PropTypes.object;
string: typeof PropTypes.string;
node: typeof PropTypes.node;
element: typeof PropTypes.element;
instanceOf: typeof PropTypes.instanceOf;
oneOf: typeof PropTypes.oneOf;
oneOfType: typeof PropTypes.oneOfType;
arrayOf: typeof PropTypes.arrayOf;
objectOf: typeof PropTypes.objectOf;
shape: typeof PropTypes.shape;
exact: typeof PropTypes.exact;
}
export function deprecate<T>(validator: PropTypes.Validator<T>, message: string): PropTypes.Validator<T>;
interface Deprecatable<T> {
isDeprecated: (message: string) => Validator<T>;
isDeprecated: (message: string) => PropTypes.Validator<T>;
}

@@ -13,20 +32,20 @@

interface DeprecatablePropTypes {
any: Requireable<any> & Deprecatable<any>;
array: Requireable<any> & Deprecatable<any>;
bool: Requireable<any> & Deprecatable<any>;
func: Requireable<any> & Deprecatable<any>;
number: Requireable<any> & Deprecatable<any>;
object: Requireable<any> & Deprecatable<any>;
string: Requireable<any> & Deprecatable<any>;
node: Requireable<any> & Deprecatable<any>;
element: Requireable<any> & Deprecatable<any>;
instanceOf(expectedClass: {}): Requireable<any> & Deprecatable<any>;
oneOf(types: any[]): Requireable<any> & Deprecatable<any>;
oneOfType(types: Array<Validator<any>>): Requireable<any> & Deprecatable<any>;
arrayOf(type: Validator<any>): Requireable<any> & Deprecatable<any>;
objectOf(type: Validator<any>): Requireable<any> & Deprecatable<any>;
shape(type: ValidationMap<any>): Requireable<any> & Deprecatable<any>;
any: PropTypes.Requireable<any> & Deprecatable<any>;
array: PropTypes.Requireable<any> & Deprecatable<any>;
bool: PropTypes.Requireable<any> & Deprecatable<any>;
func: PropTypes.Requireable<any> & Deprecatable<any>;
number: PropTypes.Requireable<any> & Deprecatable<any>;
object: PropTypes.Requireable<any> & Deprecatable<any>;
string: PropTypes.Requireable<any> & Deprecatable<any>;
node: PropTypes.Requireable<any> & Deprecatable<any>;
element: PropTypes.Requireable<any> & Deprecatable<any>;
instanceOf(expectedClass: {}): PropTypes.Requireable<any> & Deprecatable<any>;
oneOf(types: any[]): PropTypes.Requireable<any> & Deprecatable<any>;
oneOfType(types: Array<PropTypes.Validator<any>>): PropTypes.Requireable<any> & Deprecatable<any>;
arrayOf(type: PropTypes.Validator<any>): PropTypes.Requireable<any> & Deprecatable<any>;
objectOf(type: PropTypes.Validator<any>): PropTypes.Requireable<any> & Deprecatable<any>;
shape(type: PropTypes.ValidationMap<any>): PropTypes.Requireable<any> & Deprecatable<any>;
}
export function addIsDeprecated(propTypes: ReactPropTypes): DeprecatablePropTypes;
export function addIsDeprecated(propTypes: PropTypesValidators): DeprecatablePropTypes;
}
{
"name": "@types/react-is-deprecated",
"version": "0.1.13",
"version": "0.1.14",
"description": "TypeScript definitions for react-is-deprecated",

@@ -23,6 +23,6 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-is-deprecated",

"dependencies": {
"@types/react": "*"
"@types/prop-types": "*"
},
"typesPublisherContentHash": "0a4b38f4a0dbce6f9e59bfa8b540c10698a34ade6684e5c4202af683e8b67d86",
"typeScriptVersion": "4.5"
"typesPublisherContentHash": "b6ccbe21f20cbf50e782dee32b9b74d102eed31255ea39e85a109e6aeb5c28ed",
"typeScriptVersion": "4.7"
}

@@ -12,8 +12,27 @@ # Installation

declare module "react-is-deprecated" {
import { ReactPropTypes, Requireable, ValidationMap, Validator } from "react";
import type * as PropTypes from "prop-types";
export function deprecate<T>(validator: Validator<T>, message: string): Validator<T>;
interface PropTypesValidators {
any: typeof PropTypes.any;
array: typeof PropTypes.array;
bool: typeof PropTypes.bool;
func: typeof PropTypes.func;
number: typeof PropTypes.number;
object: typeof PropTypes.object;
string: typeof PropTypes.string;
node: typeof PropTypes.node;
element: typeof PropTypes.element;
instanceOf: typeof PropTypes.instanceOf;
oneOf: typeof PropTypes.oneOf;
oneOfType: typeof PropTypes.oneOfType;
arrayOf: typeof PropTypes.arrayOf;
objectOf: typeof PropTypes.objectOf;
shape: typeof PropTypes.shape;
exact: typeof PropTypes.exact;
}
export function deprecate<T>(validator: PropTypes.Validator<T>, message: string): PropTypes.Validator<T>;
interface Deprecatable<T> {
isDeprecated: (message: string) => Validator<T>;
isDeprecated: (message: string) => PropTypes.Validator<T>;
}

@@ -24,20 +43,20 @@

interface DeprecatablePropTypes {
any: Requireable<any> & Deprecatable<any>;
array: Requireable<any> & Deprecatable<any>;
bool: Requireable<any> & Deprecatable<any>;
func: Requireable<any> & Deprecatable<any>;
number: Requireable<any> & Deprecatable<any>;
object: Requireable<any> & Deprecatable<any>;
string: Requireable<any> & Deprecatable<any>;
node: Requireable<any> & Deprecatable<any>;
element: Requireable<any> & Deprecatable<any>;
instanceOf(expectedClass: {}): Requireable<any> & Deprecatable<any>;
oneOf(types: any[]): Requireable<any> & Deprecatable<any>;
oneOfType(types: Array<Validator<any>>): Requireable<any> & Deprecatable<any>;
arrayOf(type: Validator<any>): Requireable<any> & Deprecatable<any>;
objectOf(type: Validator<any>): Requireable<any> & Deprecatable<any>;
shape(type: ValidationMap<any>): Requireable<any> & Deprecatable<any>;
any: PropTypes.Requireable<any> & Deprecatable<any>;
array: PropTypes.Requireable<any> & Deprecatable<any>;
bool: PropTypes.Requireable<any> & Deprecatable<any>;
func: PropTypes.Requireable<any> & Deprecatable<any>;
number: PropTypes.Requireable<any> & Deprecatable<any>;
object: PropTypes.Requireable<any> & Deprecatable<any>;
string: PropTypes.Requireable<any> & Deprecatable<any>;
node: PropTypes.Requireable<any> & Deprecatable<any>;
element: PropTypes.Requireable<any> & Deprecatable<any>;
instanceOf(expectedClass: {}): PropTypes.Requireable<any> & Deprecatable<any>;
oneOf(types: any[]): PropTypes.Requireable<any> & Deprecatable<any>;
oneOfType(types: Array<PropTypes.Validator<any>>): PropTypes.Requireable<any> & Deprecatable<any>;
arrayOf(type: PropTypes.Validator<any>): PropTypes.Requireable<any> & Deprecatable<any>;
objectOf(type: PropTypes.Validator<any>): PropTypes.Requireable<any> & Deprecatable<any>;
shape(type: PropTypes.ValidationMap<any>): PropTypes.Requireable<any> & Deprecatable<any>;
}
export function addIsDeprecated(propTypes: ReactPropTypes): DeprecatablePropTypes;
export function addIsDeprecated(propTypes: PropTypesValidators): DeprecatablePropTypes;
}

@@ -48,6 +67,6 @@

### Additional Details
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
* Last updated: Fri, 22 Mar 2024 20:06:54 GMT
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types)
# Credits
These definitions were written by [Sean Kelley](https://github.com/seansfkelley).