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

@fastkit/ts-type-utils

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

@fastkit/ts-type-utils - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "@fastkit/ts-type-utils",
"version": "0.1.1",
"version": "0.1.2",
"description": "ts-type-utils",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -23,7 +23,4 @@ /** Convert union to intersection type */

*/
export type IfEquals<X, Y, A, B> = (<T>() => T extends X ? 1 : 2) extends <
T,
>() => T extends Y ? 1 : 2
? A
: B;
export type IfEquals<X, Y, A, B> =
(<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;

@@ -88,7 +85,7 @@ /** Retrieve writable member names from the structure by union type */

: // eslint-disable-next-line @typescript-eslint/ban-types
T extends object
? {
[P in keyof T]?: DeepPartial<T[P]>;
}
: T;
T extends object
? {
[P in keyof T]?: DeepPartial<T[P]>;
}
: T;

@@ -95,0 +92,0 @@ /**

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