@pothos/core
Advanced tools
Comparing version 3.31.2 to 3.32.0
# Change Log | ||
## 3.32.0 | ||
### Minor Changes | ||
- be23f48d: Fix issue with inputRef not serializing symbols correctly | ||
## 3.31.2 | ||
@@ -4,0 +10,0 @@ |
@@ -32,7 +32,7 @@ export type MaybePromise<T> = Promise<T> | T; | ||
}; | ||
export type RecursivelyNormalizeNullableFields<T> = undefined extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : null extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends (...args: any[]) => unknown ? T : T extends object ? Normalize<{ | ||
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined; | ||
export type RecursivelyNormalizeNullableFields<T> = undefined extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : null extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends (...args: any[]) => unknown ? T : keyof T extends string ? T extends object ? Normalize<{ | ||
[K in OptionalKeys<T>]?: K extends string ? RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined : T[K]; | ||
} & { | ||
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>; | ||
}> : T; | ||
}> : T : T; | ||
export type RemoveNeverKeys<T extends {}> = { | ||
@@ -39,0 +39,0 @@ [K in keyof T as [T[K]] extends [never] ? never : K]: T[K]; |
@@ -32,7 +32,7 @@ export type MaybePromise<T> = Promise<T> | T; | ||
}; | ||
export type RecursivelyNormalizeNullableFields<T> = undefined extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : null extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends (...args: any[]) => unknown ? T : T extends object ? Normalize<{ | ||
[K in OptionalKeys<T>]?: RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined; | ||
export type RecursivelyNormalizeNullableFields<T> = undefined extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : null extends T ? RecursivelyNormalizeNullableFields<NonNullable<T>> | null | undefined : T extends (infer L)[] ? RecursivelyNormalizeNullableFields<L>[] : T extends (...args: any[]) => unknown ? T : keyof T extends string ? T extends object ? Normalize<{ | ||
[K in OptionalKeys<T>]?: K extends string ? RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined : T[K]; | ||
} & { | ||
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>; | ||
}> : T; | ||
}> : T : T; | ||
export type RemoveNeverKeys<T extends {}> = { | ||
@@ -39,0 +39,0 @@ [K in keyof T as [ |
{ | ||
"name": "@pothos/core", | ||
"version": "3.31.2", | ||
"version": "3.32.0", | ||
"description": "Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -57,13 +57,14 @@ export type MaybePromise<T> = Promise<T> | T; | ||
? T | ||
: T extends object | ||
? Normalize< | ||
{ | ||
[K in OptionalKeys<T>]?: | ||
| RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | ||
| null | ||
| undefined; | ||
} & { | ||
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>; | ||
} | ||
> | ||
: keyof T extends string | ||
? T extends object | ||
? Normalize< | ||
{ | ||
[K in OptionalKeys<T>]?: K extends string | ||
? RecursivelyNormalizeNullableFields<NonNullable<T[K]>> | null | undefined | ||
: T[K]; | ||
} & { | ||
[K in RequiredKeys<T>]: RecursivelyNormalizeNullableFields<NonNullable<T[K]>>; | ||
} | ||
> | ||
: T | ||
: T; | ||
@@ -70,0 +71,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1048308
15679