File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "dependencies" : {
4- "csstype" : " ^3.0.2"
4+ "csstype" : " ^3.0.2" ,
5+ "utility-types" : " ^3.10.0"
56 },
67 "exports" : {
78 "." : {
Original file line number Diff line number Diff line change 3434import * as CSS from 'csstype' ;
3535import * as PropTypes from 'prop-types' ;
3636import { Interaction as SchedulerInteraction } from 'scheduler/tracing' ;
37+ import { DeepReadonly } from "utility-types" ;
3738
3839type NativeAnimationEvent = AnimationEvent ;
3940type NativeClipboardEvent = ClipboardEvent ;
@@ -918,15 +919,15 @@ declare namespace React {
918919 * @version 16.8.0
919920 * @see https://reactjs.org/docs/hooks-reference.html#usestate
920921 */
921- function useState < S > ( initialState : S | ( ( ) => S ) ) : [ Readonly < S > , Dispatch < SetStateAction < S > > ] ;
922+ function useState < S > ( initialState : S | ( ( ) => S ) ) : [ DeepReadonly < S > , Dispatch < SetStateAction < S > > ] ;
922923 // convenience overload when first argument is omitted
923924 /**
924925 * Returns a stateful value, and a function to update it.
925926 *
926927 * @version 16.8.0
927928 * @see https://reactjs.org/docs/hooks-reference.html#usestate
928929 */
929- function useState < S = undefined > ( ) : [ Readonly < S > | undefined , Dispatch < SetStateAction < S | undefined > > ] ;
930+ function useState < S = undefined > ( ) : [ DeepReadonly < S > | undefined , Dispatch < SetStateAction < S | undefined > > ] ;
930931 /**
931932 * An alternative to `useState`.
932933 *
You can’t perform that action at this time.
0 commit comments