Socket
Socket
Sign inDemoInstall

@shopify/useful-types

Package Overview
Dependencies
Maintainers
13
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/useful-types - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

8

dist/types.d.ts

@@ -9,12 +9,12 @@ import { ComponentType, HTMLAttributes } from 'react';

export declare type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>;
[P in keyof T]?: T[P] extends (infer U)[] ? DeepPartial<U>[] : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>;
};
export declare type Props<T> = T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : T extends string ? HTMLAttributes<T> : T extends ComponentType<infer Props> ? Props : never;
export declare type IfEmptyObject<Object, If, Else = never> = keyof Object extends {
export declare type IfEmptyObject<Obj, If, Else = never> = keyof Obj extends {
length: 0;
} ? If : Else;
export declare type IfAllOptionalKeys<Object, If, Else = never> = NonOptionalKeys<Object> extends {
export declare type IfAllOptionalKeys<Obj, If, Else = never> = NonOptionalKeys<Obj> extends {
length: 0;
} ? If : Else;
export declare type IfAllNullableKeys<Object, If, Else = never> = NonNullableKeys<Object> extends {
export declare type IfAllNullableKeys<Obj, If, Else = never> = NonNullableKeys<Obj> extends {
length: 0;

@@ -21,0 +21,0 @@ } ? If : Else;

{
"name": "@shopify/useful-types",
"version": "1.2.1",
"version": "1.2.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A few handy TypeScript types",

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