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

@shopify/useful-types

Package Overview
Dependencies
Maintainers
18
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 3.1.0 to 3.1.1-a11y-test-class-beta.0

11

build/ts/types.d.ts

@@ -1,8 +0,2 @@

export declare type ThenType<T> = T extends Promise<infer U> ? U : T;
export declare type Arguments<T> = T extends (...args: infer U) => any ? U : never;
export declare type ArgumentAtIndex<Func, Index extends keyof Arguments<Func>> = Arguments<Func>[Index];
export declare type FirstArgument<T> = ArgumentAtIndex<T, 0>;
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 Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export declare type DeepPartial<T> = {

@@ -32,7 +26,2 @@ [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 ExtendedWindow<T> = Window & typeof globalThis & T;
export declare type ConstructorArguments<T> = T extends {
new (...args: infer U): any;
} ? U : never;
export declare type ConstructorArgumentAtIndex<T, I extends keyof ConstructorArguments<T>> = ConstructorArguments<T>[I];
export declare type FirstConstructorArgument<T> = ConstructorArgumentAtIndex<T, 0>;
declare type Primitive = string | Function | number | boolean | Symbol | undefined | null;

@@ -39,0 +28,0 @@ declare type DeepOmitHelper<T, K extends keyof T> = {

4

package.json
{
"name": "@shopify/useful-types",
"version": "3.1.0",
"version": "3.1.1-a11y-test-class-beta.0",
"license": "MIT",

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

},
"gitHead": "330b095ff92c3538d5c21efcbf70d72ec2ecb9c6"
"gitHead": "21f6d3bf9ff0bdafe792472b19ece7de581f733f"
}

Sorry, the diff of this file is not supported yet

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