@aws-amplify/data-schema-types
Advanced tools
Comparing version 0.6.10 to 0.6.11
@@ -114,3 +114,3 @@ import { DeepReadOnlyObject, UnwrapArray, UnionToIntersection, Prettify, Equal } from '../util'; | ||
done: Field extends string ? `${Field}.*` : never; | ||
recur: Field extends string ? UnwrapArray<FlatModel[Field]> extends Record<string, unknown> ? `${Field}.${ModelPath<UnwrapArray<FlatModel[Field]>, RecursionLoop[Depth]>}` | `${Field}.*` : `${Field}` : never; | ||
recur: Field extends string ? NonNullable<UnwrapArray<FlatModel[Field]>> extends Record<string, unknown> ? `${Field}.${ModelPath<NonNullable<UnwrapArray<FlatModel[Field]>>, RecursionLoop[Depth]>}` | `${Field}.*` : `${Field}` : never; | ||
}[Depth extends -1 ? 'done' : 'recur']; | ||
@@ -117,0 +117,0 @@ /** |
{ | ||
"name": "@aws-amplify/data-schema-types", | ||
"version": "0.6.10", | ||
"version": "0.6.11", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./lib-esm/index.d.ts", |
@@ -175,6 +175,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
recur: Field extends string | ||
? UnwrapArray<FlatModel[Field]> extends Record<string, unknown> | ||
? NonNullable<UnwrapArray<FlatModel[Field]>> extends Record<string, unknown> | ||
? | ||
| `${Field}.${ModelPath< | ||
UnwrapArray<FlatModel[Field]>, | ||
NonNullable<UnwrapArray<FlatModel[Field]>>, | ||
// this decrements `Depth` by 1 in each recursive call; it's equivalent to the update expr. afterthought in a for loop (e.g. `depth -= 1`) | ||
@@ -181,0 +181,0 @@ RecursionLoop[Depth] |
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
60907