@types/react
Advanced tools
Comparing version 18.2.23 to 18.2.33
@@ -30,2 +30,5 @@ /** | ||
declare const UNDEFINED_VOID_ONLY: unique symbol; | ||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never }; | ||
declare module "." { | ||
@@ -87,2 +90,25 @@ interface ThenableImpl<T> { | ||
export function unstable_useCacheRefresh(): () => void; | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS { | ||
functions: (formData: FormData) => void; | ||
} | ||
export interface TransitionStartFunction { | ||
/** | ||
* Marks all state updates inside the async function as transitions | ||
* | ||
* @see {https://react.dev/reference/react/useTransition#starttransition} | ||
* | ||
* @param callback | ||
*/ | ||
(callback: () => Promise<VoidOrUndefinedOnly>): void; | ||
} | ||
function useOptimistic<State>( | ||
passthrough: State, | ||
): [State, (action: State | ((pendingState: State) => State)) => void]; | ||
function useOptimistic<State, Action>( | ||
passthrough: State, | ||
reducer: (state: State, action: Action) => State, | ||
): [State, (action: Action) => void]; | ||
} |
@@ -118,24 +118,10 @@ /** | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS { | ||
functions: (formData: FormData) => void; | ||
} | ||
export interface TransitionStartFunction { | ||
/** | ||
* Marks all state updates inside the async function as transitions | ||
* | ||
* @see {https://react.dev/reference/react/useTransition#starttransition} | ||
* | ||
* @param callback | ||
*/ | ||
(callback: () => Promise<VoidOrUndefinedOnly>): void; | ||
} | ||
function experimental_useOptimistic<State>( | ||
passthrough: State, | ||
): [State, (action: State | ((pendingState: State) => State)) => void]; | ||
function experimental_useOptimistic<State, Action>( | ||
passthrough: State, | ||
reducer: (state: State, action: Action) => State, | ||
): [State, (action: Action) => void]; | ||
type Reference = object; | ||
type TaintableUniqueValue = string | bigint | ArrayBufferView; | ||
function experimental_taintUniqueValue( | ||
message: string | undefined, | ||
lifetime: Reference, | ||
value: TaintableUniqueValue, | ||
): void; | ||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void; | ||
} |
{ | ||
"name": "@types/react", | ||
"version": "18.2.23", | ||
"description": "TypeScript definitions for React", | ||
"version": "18.2.33", | ||
"description": "TypeScript definitions for react", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react", | ||
@@ -22,119 +22,119 @@ "license": "MIT", | ||
"name": "John Reilly", | ||
"url": "https://github.com/johnnyreilly", | ||
"githubUsername": "johnnyreilly" | ||
"githubUsername": "johnnyreilly", | ||
"url": "https://github.com/johnnyreilly" | ||
}, | ||
{ | ||
"name": "Benoit Benezech", | ||
"url": "https://github.com/bbenezech", | ||
"githubUsername": "bbenezech" | ||
"githubUsername": "bbenezech", | ||
"url": "https://github.com/bbenezech" | ||
}, | ||
{ | ||
"name": "Patricio Zavolinsky", | ||
"url": "https://github.com/pzavolinsky", | ||
"githubUsername": "pzavolinsky" | ||
"githubUsername": "pzavolinsky", | ||
"url": "https://github.com/pzavolinsky" | ||
}, | ||
{ | ||
"name": "Eric Anderson", | ||
"url": "https://github.com/ericanderson", | ||
"githubUsername": "ericanderson" | ||
"githubUsername": "ericanderson", | ||
"url": "https://github.com/ericanderson" | ||
}, | ||
{ | ||
"name": "Dovydas Navickas", | ||
"url": "https://github.com/DovydasNavickas", | ||
"githubUsername": "DovydasNavickas" | ||
"githubUsername": "DovydasNavickas", | ||
"url": "https://github.com/DovydasNavickas" | ||
}, | ||
{ | ||
"name": "Josh Rutherford", | ||
"url": "https://github.com/theruther4d", | ||
"githubUsername": "theruther4d" | ||
"githubUsername": "theruther4d", | ||
"url": "https://github.com/theruther4d" | ||
}, | ||
{ | ||
"name": "Guilherme Hübner", | ||
"url": "https://github.com/guilhermehubner", | ||
"githubUsername": "guilhermehubner" | ||
"githubUsername": "guilhermehubner", | ||
"url": "https://github.com/guilhermehubner" | ||
}, | ||
{ | ||
"name": "Ferdy Budhidharma", | ||
"url": "https://github.com/ferdaber", | ||
"githubUsername": "ferdaber" | ||
"githubUsername": "ferdaber", | ||
"url": "https://github.com/ferdaber" | ||
}, | ||
{ | ||
"name": "Johann Rakotoharisoa", | ||
"url": "https://github.com/jrakotoharisoa", | ||
"githubUsername": "jrakotoharisoa" | ||
"githubUsername": "jrakotoharisoa", | ||
"url": "https://github.com/jrakotoharisoa" | ||
}, | ||
{ | ||
"name": "Olivier Pascal", | ||
"url": "https://github.com/pascaloliv", | ||
"githubUsername": "pascaloliv" | ||
"githubUsername": "pascaloliv", | ||
"url": "https://github.com/pascaloliv" | ||
}, | ||
{ | ||
"name": "Martin Hochel", | ||
"url": "https://github.com/hotell", | ||
"githubUsername": "hotell" | ||
"githubUsername": "hotell", | ||
"url": "https://github.com/hotell" | ||
}, | ||
{ | ||
"name": "Frank Li", | ||
"url": "https://github.com/franklixuefei", | ||
"githubUsername": "franklixuefei" | ||
"githubUsername": "franklixuefei", | ||
"url": "https://github.com/franklixuefei" | ||
}, | ||
{ | ||
"name": "Jessica Franco", | ||
"url": "https://github.com/Jessidhia", | ||
"githubUsername": "Jessidhia" | ||
"githubUsername": "Jessidhia", | ||
"url": "https://github.com/Jessidhia" | ||
}, | ||
{ | ||
"name": "Saransh Kataria", | ||
"url": "https://github.com/saranshkataria", | ||
"githubUsername": "saranshkataria" | ||
"githubUsername": "saranshkataria", | ||
"url": "https://github.com/saranshkataria" | ||
}, | ||
{ | ||
"name": "Kanitkorn Sujautra", | ||
"url": "https://github.com/lukyth", | ||
"githubUsername": "lukyth" | ||
"githubUsername": "lukyth", | ||
"url": "https://github.com/lukyth" | ||
}, | ||
{ | ||
"name": "Sebastian Silbermann", | ||
"url": "https://github.com/eps1lon", | ||
"githubUsername": "eps1lon" | ||
"githubUsername": "eps1lon", | ||
"url": "https://github.com/eps1lon" | ||
}, | ||
{ | ||
"name": "Kyle Scully", | ||
"url": "https://github.com/zieka", | ||
"githubUsername": "zieka" | ||
"githubUsername": "zieka", | ||
"url": "https://github.com/zieka" | ||
}, | ||
{ | ||
"name": "Cong Zhang", | ||
"url": "https://github.com/dancerphil", | ||
"githubUsername": "dancerphil" | ||
"githubUsername": "dancerphil", | ||
"url": "https://github.com/dancerphil" | ||
}, | ||
{ | ||
"name": "Dimitri Mitropoulos", | ||
"url": "https://github.com/dimitropoulos", | ||
"githubUsername": "dimitropoulos" | ||
"githubUsername": "dimitropoulos", | ||
"url": "https://github.com/dimitropoulos" | ||
}, | ||
{ | ||
"name": "JongChan Choi", | ||
"url": "https://github.com/disjukr", | ||
"githubUsername": "disjukr" | ||
"githubUsername": "disjukr", | ||
"url": "https://github.com/disjukr" | ||
}, | ||
{ | ||
"name": "Victor Magalhães", | ||
"url": "https://github.com/vhfmag", | ||
"githubUsername": "vhfmag" | ||
"githubUsername": "vhfmag", | ||
"url": "https://github.com/vhfmag" | ||
}, | ||
{ | ||
"name": "Dale Tan", | ||
"url": "https://github.com/hellatan", | ||
"githubUsername": "hellatan" | ||
"githubUsername": "hellatan", | ||
"url": "https://github.com/hellatan" | ||
}, | ||
{ | ||
"name": "Priyanshu Rav", | ||
"url": "https://github.com/priyanshurav", | ||
"githubUsername": "priyanshurav" | ||
"githubUsername": "priyanshurav", | ||
"url": "https://github.com/priyanshurav" | ||
}, | ||
{ | ||
"name": "Dmitry Semigradsky", | ||
"url": "https://github.com/Semigradsky", | ||
"githubUsername": "Semigradsky" | ||
"githubUsername": "Semigradsky", | ||
"url": "https://github.com/Semigradsky" | ||
} | ||
@@ -151,15 +151,2 @@ ], | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/prop-types": "*", | ||
"@types/scheduler": "*", | ||
"csstype": "^3.0.2" | ||
}, | ||
"typesPublisherContentHash": "784f030e93613fe462a2200aa4af7d045d02056972383788be23ba113e3ccfbe", | ||
"typeScriptVersion": "4.5", | ||
"exports": { | ||
@@ -207,3 +194,16 @@ ".": { | ||
"./package.json": "./package.json" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/prop-types": "*", | ||
"@types/scheduler": "*", | ||
"csstype": "^3.0.2" | ||
}, | ||
"typesPublisherContentHash": "5e704d45296f0ebcba83d5224ff9187aa470b5234d62c4ccfd47ff6857fa98fe", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for React (https://react.dev/). | ||
This package contains type definitions for react (https://react.dev/). | ||
@@ -12,7 +12,6 @@ # Details | ||
### Additional Details | ||
* Last updated: Tue, 26 Sep 2023 14:05:46 GMT | ||
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler) | ||
* Global values: `React` | ||
* Last updated: Thu, 26 Oct 2023 05:16:20 GMT | ||
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype) | ||
# Credits | ||
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Dale Tan](https://github.com/hellatan), [Priyanshu Rav](https://github.com/priyanshurav), and [Dmitry Semigradsky](https://github.com/Semigradsky). |
@@ -30,2 +30,5 @@ /** | ||
declare const UNDEFINED_VOID_ONLY: unique symbol; | ||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never }; | ||
declare module "." { | ||
@@ -87,2 +90,25 @@ interface ThenableImpl<T> { | ||
export function unstable_useCacheRefresh(): () => void; | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS { | ||
functions: (formData: FormData) => void; | ||
} | ||
export interface TransitionStartFunction { | ||
/** | ||
* Marks all state updates inside the async function as transitions | ||
* | ||
* @see {https://react.dev/reference/react/ts5.0/useTransition#starttransition} | ||
* | ||
* @param callback | ||
*/ | ||
(callback: () => Promise<VoidOrUndefinedOnly>): void; | ||
} | ||
function useOptimistic<State>( | ||
passthrough: State, | ||
): [State, (action: State | ((pendingState: State) => State)) => void]; | ||
function useOptimistic<State, Action>( | ||
passthrough: State, | ||
reducer: (state: State, action: Action) => State, | ||
): [State, (action: Action) => void]; | ||
} |
@@ -118,24 +118,10 @@ /** | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS { | ||
functions: (formData: FormData) => void; | ||
} | ||
export interface TransitionStartFunction { | ||
/** | ||
* Marks all state updates inside the async function as transitions | ||
* | ||
* @see {https://react.dev/reference/react/ts5.0/useTransition#starttransition} | ||
* | ||
* @param callback | ||
*/ | ||
(callback: () => Promise<VoidOrUndefinedOnly>): void; | ||
} | ||
function experimental_useOptimistic<State>( | ||
passthrough: State, | ||
): [State, (action: State | ((pendingState: State) => State)) => void]; | ||
function experimental_useOptimistic<State, Action>( | ||
passthrough: State, | ||
reducer: (state: State, action: Action) => State, | ||
): [State, (action: Action) => void]; | ||
type Reference = object; | ||
type TaintableUniqueValue = string | bigint | ArrayBufferView; | ||
function experimental_taintUniqueValue( | ||
message: string | undefined, | ||
lifetime: Reference, | ||
value: TaintableUniqueValue, | ||
): void; | ||
function experimental_taintObjectReference(message: string | undefined, object: Reference): void; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
363440
7238
16