@aws-amplify/data-schema-types
Advanced tools
Comparing version 0.6.8 to 0.6.9
@@ -51,2 +51,3 @@ /** | ||
export type ObjectIsNonEmpty<T extends object> = keyof T extends never ? false : true; | ||
export type HasKey<Obj extends Record<string, any>, Key extends string> = Key extends keyof Obj ? true : false; | ||
/** | ||
@@ -53,0 +54,0 @@ * @returns element type for arrays; otherwise returns passed-in type as is |
{ | ||
"name": "@aws-amplify/data-schema-types", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./lib-esm/index.d.ts", |
@@ -19,4 +19,4 @@ /** | ||
: T extends object | ||
? { [P in keyof T]: Prettify<T[P]> } | ||
: T; | ||
? { [P in keyof T]: Prettify<T[P]> } | ||
: T; | ||
@@ -59,3 +59,2 @@ declare const brand: unique symbol; | ||
export type IsFalse<T extends false> = T; | ||
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends < | ||
@@ -76,2 +75,7 @@ T, | ||
export type HasKey< | ||
Obj extends Record<string, any>, | ||
Key extends string, | ||
> = Key extends keyof Obj ? true : false; | ||
/** | ||
@@ -85,3 +89,3 @@ * @returns element type for arrays; otherwise returns passed-in type as is | ||
: T extends Record<any, any> | ||
? { readonly [k in keyof T]: DeepReadOnlyObject<T[k]> } | ||
: T; | ||
? { readonly [k in keyof T]: DeepReadOnlyObject<T[k]> } | ||
: T; |
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
60928
1387