Socket
Socket
Sign inDemoInstall

@peersyst/react-types

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peersyst/react-types - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

29

index.d.ts

@@ -28,2 +28,6 @@ import { CSSProperties, ReactElement } from "react";

> = GenerateStringUnion<Overwrite<Record<T, true>, U>>;
export type OverridableStringUnion<
T extends string | number,
U = Record<string, any>,
> = GenerateStringUnion<Overwrite<Record<T, true>, U>>;

@@ -149,2 +153,12 @@ /**

}[Extract<keyof T, string>];
type FlattenedCoreNestedKeys<
T extends object,
I extends number = MaxRecursiveIterations,
> = I extends 0
? never
: {
[Key in keyof T]: T[Key] extends object
? `${Key}.${CoreNestedKeys<T[Key], Iterations[I]>}`
: Key;
}[Extract<keyof T, string>];

@@ -164,1 +178,16 @@ /**

: T[K];
type CoreDeepPick<
T extends object,
K extends string,
I extends number = MaxRecursiveIterations,
> = I extends 0
? never
: K extends `${infer FirstKey}.${infer RestKey}`
? CoreDeepPick<T[FirstKey], RestKey, Iterations[I]>
: T[K];
/**
* Updater types
*/
export type Updater<T> = T | ((old: T) => T);
export type UpdaterFn<T> = (updaterOrValue: Updater<T>) => void;

2

package.json
{
"name": "@peersyst/react-types",
"author": "Peersyst",
"version": "1.5.2",
"version": "1.5.3",
"license": "MIT",

@@ -6,0 +6,0 @@ "types": "./index.d.ts",

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