New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/use-persisted-state

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/use-persisted-state - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

4

use-persisted-state/index.d.ts

@@ -6,5 +6,5 @@ // Type definitions for use-persisted-state 0.3

// TypeScript Version: 2.8
import { Dispatch, SetStateAction } from 'react';
import { Dispatch, SetStateAction } from "react";
declare function createPersistedState<S>(key: string, provider?: Pick<Storage, 'getItem' | 'setItem'>): {
declare function createPersistedState<S>(key: string, provider?: Pick<Storage, "getItem" | "setItem">): {
(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];

@@ -11,0 +11,0 @@ (): [S | undefined, Dispatch<SetStateAction<S | undefined>>];

{
"name": "@types/use-persisted-state",
"version": "0.3.1",
"version": "0.3.2",
"description": "TypeScript definitions for use-persisted-state",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-persisted-state",

},
"typesPublisherContentHash": "f064b7129791716453f4dfbb03dc9c6ef7db7c314c6c7145bf6dc5c7f031dfa1",
"typeScriptVersion": "3.8"
"typesPublisherContentHash": "ec8a8f3065f08563c3e48f30cf66be80e820a2e87a07cabb06fc72c9db6b7598",
"typeScriptVersion": "4.3"
}

@@ -16,5 +16,5 @@ # Installation

// TypeScript Version: 2.8
import { Dispatch, SetStateAction } from 'react';
import { Dispatch, SetStateAction } from "react";
declare function createPersistedState<S>(key: string, provider?: Pick<Storage, 'getItem' | 'setItem'>): {
declare function createPersistedState<S>(key: string, provider?: Pick<Storage, "getItem" | "setItem">): {
(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];

@@ -30,3 +30,3 @@ (): [S | undefined, Dispatch<SetStateAction<S | undefined>>];

### Additional Details
* Last updated: Sat, 29 Jan 2022 21:31:30 GMT
* Last updated: Wed, 30 Aug 2023 19:35:38 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -33,0 +33,0 @@ * Global values: `createPersistedState`

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