@shopify/useful-types
Advanced tools
Comparing version 2.4.0 to 2.4.2
@@ -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
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
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
16118
22