@secrecy/lib 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zeus/const.js +1 -1
- package/dist/zeus/index.d.ts +2 -4
- package/dist/zeus/index.js +17 -23
- package/package.json +1 -1
package/dist/zeus/index.d.ts
CHANGED
|
@@ -154,10 +154,8 @@ type BaseZeusResolver = boolean | 1 | string | Variable<any, string>;
|
|
|
154
154
|
type IsInterfaced<SRC extends DeepAnify<DST>, DST, SCLR extends ScalarDefinition> = FlattenArray<SRC> extends ZEUS_INTERFACES | ZEUS_UNIONS ? {
|
|
155
155
|
[P in keyof SRC]: SRC[P] extends "__union" & infer R ? P extends keyof DST ? IsArray<R, "__typename" extends keyof DST ? DST[P] & {
|
|
156
156
|
__typename: true;
|
|
157
|
-
} : DST[P], SCLR> :
|
|
158
|
-
|
|
159
|
-
} : never, SCLR> : never;
|
|
160
|
-
}[keyof SRC] & {
|
|
157
|
+
} : DST[P], SCLR> : Record<string, unknown> : never;
|
|
158
|
+
}[keyof DST] & {
|
|
161
159
|
[P in keyof Omit<Pick<SRC, {
|
|
162
160
|
[P in keyof DST]: SRC[P] extends "__union" ? never : P;
|
|
163
161
|
}[keyof DST]>, "__typename">]: IsPayLoad<DST[P]> extends BaseZeusResolver ? IsScalar<SRC[P], SCLR> : IsArray<SRC[P], DST[P], SCLR>;
|