Socket
Socket
Sign inDemoInstall

@shopify/useful-types

Package Overview
Dependencies
Maintainers
19
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 2.4.0 to 2.4.2

LICENSE.md

4

build/ts/types.d.ts

@@ -6,6 +6,6 @@ export declare type ThenType<T> = T extends Promise<infer U> ? U : T;

export declare type MaybeFunctionReturnType<T> = T extends (...args: any[]) => infer U ? U : never;
export declare type ArrayElement<T> = T extends (infer U)[] ? U : never;
export declare type ArrayElement<T> = T extends Array<infer U> ? U : never;
export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export declare type DeepPartial<T> = {
[P in keyof T]?: T[P] extends (infer U)[] ? DeepPartial<U>[] : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>;
[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]>;
};

@@ -12,0 +12,0 @@ export declare type IfEmptyObject<Obj, If, Else = never> = keyof Obj extends {

{
"name": "@shopify/useful-types",
"version": "2.4.0",
"version": "2.4.2",
"license": "MIT",

@@ -40,3 +40,4 @@ "description": "A few handy TypeScript types",

}
}
},
"gitHead": "4324f27f72ae7b1800ec6bde9087af4ed89b3833"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc