@types/react 17.0.90 → 17.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
react v17.0/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v17.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 18 Nov 2025 02:14:41 GMT
11
+ * Last updated: Thu, 05 Feb 2026 09:44:59 GMT
12
12
  * 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)
13
13
 
14
14
  # Credits
react v17.0/index.d.ts CHANGED
@@ -457,7 +457,7 @@ declare namespace React {
457
457
  * }
458
458
  * ```
459
459
  *
460
- * @see https://react.dev/reference/react/Component#static-contexttype
460
+ * @see {@link https://react.dev/reference/react/Component#static-contexttype}
461
461
  */
462
462
  static contextType?: Context<any> | undefined;
463
463
 
@@ -474,7 +474,7 @@ declare namespace React {
474
474
  * declare context: React.ContextType<typeof MyContext>
475
475
  * ```
476
476
  *
477
- * @see https://react.dev/reference/react/Component#context
477
+ * @see {@link https://react.dev/reference/react/Component#context}
478
478
  */
479
479
  // TODO (TypeScript 3.0): unknown
480
480
  context: any;
@@ -482,7 +482,7 @@ declare namespace React {
482
482
  constructor(props: Readonly<P> | P);
483
483
  /**
484
484
  * @deprecated
485
- * @see https://legacy.reactjs.org/docs/legacy-context.html
485
+ * @see {@link https://legacy.reactjs.org/docs/legacy-context.html}
486
486
  */
487
487
  constructor(props: P, context: any);
488
488
 
@@ -698,8 +698,8 @@ declare namespace React {
698
698
  * prevents this from being invoked.
699
699
  *
700
700
  * @deprecated 16.3, use componentDidMount or the constructor instead; will stop working in React 17
701
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state
702
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
701
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state}
702
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path}
703
703
  */
704
704
  componentWillMount?(): void;
705
705
  /**
@@ -712,8 +712,8 @@ declare namespace React {
712
712
  * prevents this from being invoked.
713
713
  *
714
714
  * @deprecated 16.3, use componentDidMount or the constructor instead
715
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state
716
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
715
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state}
716
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path}
717
717
  */
718
718
  UNSAFE_componentWillMount?(): void;
719
719
  /**
@@ -727,8 +727,8 @@ declare namespace React {
727
727
  * prevents this from being invoked.
728
728
  *
729
729
  * @deprecated 16.3, use static getDerivedStateFromProps instead; will stop working in React 17
730
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props
731
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
730
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props}
731
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path}
732
732
  */
733
733
  componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
734
734
  /**
@@ -744,8 +744,8 @@ declare namespace React {
744
744
  * prevents this from being invoked.
745
745
  *
746
746
  * @deprecated 16.3, use static getDerivedStateFromProps instead
747
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props
748
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
747
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props}
748
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path}
749
749
  */
750
750
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
751
751
  /**
@@ -757,8 +757,8 @@ declare namespace React {
757
757
  * prevents this from being invoked.
758
758
  *
759
759
  * @deprecated 16.3, use getSnapshotBeforeUpdate instead; will stop working in React 17
760
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update
761
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
760
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update}
761
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path}
762
762
  */
763
763
  componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
764
764
  /**
@@ -772,8 +772,8 @@ declare namespace React {
772
772
  * prevents this from being invoked.
773
773
  *
774
774
  * @deprecated 16.3, use getSnapshotBeforeUpdate instead
775
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update
776
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
775
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update}
776
+ * @see {@link https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path}
777
777
  */
778
778
  UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
779
779
  }
@@ -915,14 +915,14 @@ declare namespace React {
915
915
  * context value, as given by the nearest context provider for the given context.
916
916
  *
917
917
  * @version 16.8.0
918
- * @see https://react.dev/reference/react/useContext
918
+ * @see {@link https://react.dev/reference/react/useContext}
919
919
  */
920
920
  function useContext<T>(context: Context<T> /*, (not public API) observedBits?: number|boolean */): T;
921
921
  /**
922
922
  * Returns a stateful value, and a function to update it.
923
923
  *
924
924
  * @version 16.8.0
925
- * @see https://react.dev/reference/react/useState
925
+ * @see {@link https://react.dev/reference/react/useState}
926
926
  */
927
927
  function useState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
928
928
  // convenience overload when first argument is omitted
@@ -930,7 +930,7 @@ declare namespace React {
930
930
  * Returns a stateful value, and a function to update it.
931
931
  *
932
932
  * @version 16.8.0
933
- * @see https://react.dev/reference/react/useState
933
+ * @see {@link https://react.dev/reference/react/useState}
934
934
  */
935
935
  function useState<S = undefined>(): [S | undefined, Dispatch<SetStateAction<S | undefined>>];
936
936
  /**
@@ -941,7 +941,7 @@ declare namespace React {
941
941
  * updates because you can pass `dispatch` down instead of callbacks.
942
942
  *
943
943
  * @version 16.8.0
944
- * @see https://react.dev/reference/react/useReducer
944
+ * @see {@link https://react.dev/reference/react/useReducer}
945
945
  */
946
946
  // overload where dispatch could accept 0 arguments.
947
947
  function useReducer<R extends ReducerWithoutAction<any>, I>(
@@ -957,7 +957,7 @@ declare namespace React {
957
957
  * updates because you can pass `dispatch` down instead of callbacks.
958
958
  *
959
959
  * @version 16.8.0
960
- * @see https://react.dev/reference/react/useReducer
960
+ * @see {@link https://react.dev/reference/react/useReducer}
961
961
  */
962
962
  // overload where dispatch could accept 0 arguments.
963
963
  function useReducer<R extends ReducerWithoutAction<any>>(
@@ -973,7 +973,7 @@ declare namespace React {
973
973
  * updates because you can pass `dispatch` down instead of callbacks.
974
974
  *
975
975
  * @version 16.8.0
976
- * @see https://react.dev/reference/react/useReducer
976
+ * @see {@link https://react.dev/reference/react/useReducer}
977
977
  */
978
978
  // overload where "I" may be a subset of ReducerState<R>; used to provide autocompletion.
979
979
  // If "I" matches ReducerState<R> exactly then the last overload will allow initializer to be omitted.
@@ -991,7 +991,7 @@ declare namespace React {
991
991
  * updates because you can pass `dispatch` down instead of callbacks.
992
992
  *
993
993
  * @version 16.8.0
994
- * @see https://react.dev/reference/react/useReducer
994
+ * @see {@link https://react.dev/reference/react/useReducer}
995
995
  */
996
996
  // overload for free "I"; all goes as long as initializer converts it into "ReducerState<R>".
997
997
  function useReducer<R extends Reducer<any, any>, I>(
@@ -1007,7 +1007,7 @@ declare namespace React {
1007
1007
  * updates because you can pass `dispatch` down instead of callbacks.
1008
1008
  *
1009
1009
  * @version 16.8.0
1010
- * @see https://react.dev/reference/react/useReducer
1010
+ * @see {@link https://react.dev/reference/react/useReducer}
1011
1011
  */
1012
1012
 
1013
1013
  // I'm not sure if I keep this 2-ary or if I make it (2,3)-ary; it's currently (2,3)-ary.
@@ -1032,7 +1032,7 @@ declare namespace React {
1032
1032
  * value around similar to how you’d use instance fields in classes.
1033
1033
  *
1034
1034
  * @version 16.8.0
1035
- * @see https://react.dev/reference/react/useRef
1035
+ * @see {@link https://react.dev/reference/react/useRef}
1036
1036
  */
1037
1037
  function useRef<T>(initialValue: T): MutableRefObject<T>;
1038
1038
  // convenience overload for refs given as a ref prop as they typically start with a null value
@@ -1047,7 +1047,7 @@ declare namespace React {
1047
1047
  * of the generic argument.
1048
1048
  *
1049
1049
  * @version 16.8.0
1050
- * @see https://react.dev/reference/react/useRef
1050
+ * @see {@link https://react.dev/reference/react/useRef}
1051
1051
  */
1052
1052
  function useRef<T>(initialValue: T | null): RefObject<T>;
1053
1053
  // convenience overload for potentially undefined initialValue / call with 0 arguments
@@ -1060,7 +1060,7 @@ declare namespace React {
1060
1060
  * value around similar to how you’d use instance fields in classes.
1061
1061
  *
1062
1062
  * @version 16.8.0
1063
- * @see https://react.dev/reference/react/useRef
1063
+ * @see {@link https://react.dev/reference/react/useRef}
1064
1064
  */
1065
1065
  function useRef<T = undefined>(): MutableRefObject<T | undefined>;
1066
1066
  /**
@@ -1074,7 +1074,7 @@ declare namespace React {
1074
1074
  * `componentDidMount` and `componentDidUpdate`.
1075
1075
  *
1076
1076
  * @version 16.8.0
1077
- * @see https://react.dev/reference/react/useLayoutEffect
1077
+ * @see {@link https://react.dev/reference/react/useLayoutEffect}
1078
1078
  */
1079
1079
  function useLayoutEffect(effect: EffectCallback, deps?: DependencyList): void;
1080
1080
  /**
@@ -1084,7 +1084,7 @@ declare namespace React {
1084
1084
  * @param deps If present, effect will only activate if the values in the list change.
1085
1085
  *
1086
1086
  * @version 16.8.0
1087
- * @see https://react.dev/reference/react/useEffect
1087
+ * @see {@link https://react.dev/reference/react/useEffect}
1088
1088
  */
1089
1089
  function useEffect(effect: EffectCallback, deps?: DependencyList): void;
1090
1090
  // NOTE: this does not accept strings, but this will have to be fixed by removing strings from type Ref<T>
@@ -1095,7 +1095,7 @@ declare namespace React {
1095
1095
  * `useImperativeHandle` should be used with `React.forwardRef`.
1096
1096
  *
1097
1097
  * @version 16.8.0
1098
- * @see https://react.dev/reference/react/useImperativeHandle
1098
+ * @see {@link https://react.dev/reference/react/useImperativeHandle}
1099
1099
  */
1100
1100
  function useImperativeHandle<T, R extends T>(ref: Ref<T> | undefined, init: () => R, deps?: DependencyList): void;
1101
1101
  // I made 'inputs' required here and in useMemo as there's no point to memoizing without the memoization key
@@ -1105,7 +1105,7 @@ declare namespace React {
1105
1105
  * has changed.
1106
1106
  *
1107
1107
  * @version 16.8.0
1108
- * @see https://react.dev/reference/react/useCallback
1108
+ * @see {@link https://react.dev/reference/react/useCallback}
1109
1109
  */
1110
1110
  // TODO (TypeScript 3.0): <T extends (...args: never[]) => unknown>
1111
1111
  function useCallback<T extends (...args: any[]) => any>(callback: T, deps: DependencyList): T;
@@ -1113,7 +1113,7 @@ declare namespace React {
1113
1113
  * `useMemo` will only recompute the memoized value when one of the `deps` has changed.
1114
1114
  *
1115
1115
  * @version 16.8.0
1116
- * @see https://react.dev/reference/react/useMemo
1116
+ * @see {@link https://react.dev/reference/react/useMemo}
1117
1117
  */
1118
1118
  // allow undefined, but don't make it optional as that is very likely a mistake
1119
1119
  function useMemo<T>(factory: () => T, deps: DependencyList | undefined): T;
@@ -1124,7 +1124,7 @@ declare namespace React {
1124
1124
  * It’s most valuable for custom hooks that are part of shared libraries.
1125
1125
  *
1126
1126
  * @version 16.8.0
1127
- * @see https://react.dev/reference/react/useDebugValue
1127
+ * @see {@link https://react.dev/reference/react/useDebugValue}
1128
1128
  */
1129
1129
  // the name of the custom hook is itself derived from the function name at runtime:
1130
1130
  // it's just the function name without the "use" prefix.
@@ -1947,12 +1947,12 @@ declare namespace React {
1947
1947
  // Living Standard
1948
1948
  /**
1949
1949
  * Hints at the type of data that might be entered by the user while editing the element or its contents
1950
- * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
1950
+ * @see {@link https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute}
1951
1951
  */
1952
1952
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
1953
1953
  /**
1954
1954
  * Specify that a standard HTML element should behave like a defined custom built-in element
1955
- * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
1955
+ * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is}
1956
1956
  */
1957
1957
  is?: string | undefined;
1958
1958
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.90",
3
+ "version": "17.0.91",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -170,6 +170,6 @@
170
170
  "csstype": "^3.2.2"
171
171
  },
172
172
  "peerDependencies": {},
173
- "typesPublisherContentHash": "4a854e7bc4a3c2ecd7697c95ef3cced356f118b100fb1d8931cbf7bdb83088a0",
173
+ "typesPublisherContentHash": "0e5ef80db41c05dcdd9fa8e301228efc35f4f9c7e56d18280239c7c67843d3b6",
174
174
  "typeScriptVersion": "5.2"
175
175
  }