Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@os-design/use-forwarded-state

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/use-forwarded-state - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

dist/index.d.ts

17

package.json
{
"name": "@os-design/use-forwarded-state",
"version": "1.0.22",
"version": "1.0.23",
"license": "UNLICENSED",
"repository": "git@gitlab.com:os-team/libs/os-design.git",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"react-native": "src/index.ts",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"react-native": "./src/index.ts",
"files": [

@@ -24,5 +24,4 @@ "dist",

"clean": "rimraf dist",
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/esm --source-maps",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx --out-dir dist/cjs --source-maps",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
"build": "yarn clean && npm-run-all 'build:*'",

@@ -37,3 +36,3 @@ "ncu": "ncu -u"

},
"gitHead": "1f17189e344a56fd6347dd6b896d6e7ef6e7b35d"
"gitHead": "86a83e87297a07afe132782ca2c95023b7139276"
}
import {
Dispatch,
SetStateAction,
type Dispatch,
type SetStateAction,
useCallback,

@@ -17,5 +17,5 @@ useEffect,

// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/ban-types
const isFunction = (value: any): value is Function =>
typeof value === 'function';
const isFunction = <T>(
value: SetStateAction<T>
): value is (prevState: T) => T => typeof value === 'function';

@@ -22,0 +22,0 @@ const useForwardedState = <T>({

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