@shopify/useful-types
Advanced tools
Comparing version 3.1.0 to 3.1.1-a11y-test-class-beta.0
@@ -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> = { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12793
44
1