@pothos/core
Advanced tools
Comparing version 3.31.1 to 3.31.2
# Change Log | ||
## 3.31.2 | ||
### Patch Changes | ||
- bd22a282: revert improved inference for inputRef.implement | ||
## 3.31.1 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { InputFieldsFromShape, InputRef, InputShapeFromFields, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types'; | ||
import { InputFieldsFromShape, InputRef, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types'; | ||
import BaseTypeRef from './base'; | ||
@@ -11,4 +11,4 @@ export default class InputObjectRef<T> extends BaseTypeRef implements InputRef<T>, PothosSchemaTypes.InputObjectRef<T> { | ||
constructor(builder: PothosSchemaTypes.SchemaBuilder<Types>, name: string); | ||
implement<Fields extends InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>(options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): InputObjectRef<InputShapeFromFields<Fields>>; | ||
implement(options: PothosSchemaTypes.InputObjectTypeOptions<Types, InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>): InputObjectRef<RecursivelyNormalizeNullableFields<T>>; | ||
} | ||
//# sourceMappingURL=input-object.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { InputFieldsFromShape, InputRef, InputShapeFromFields, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types/index.js'; | ||
import { InputFieldsFromShape, InputRef, inputShapeKey, RecursivelyNormalizeNullableFields, SchemaTypes } from '../types/index.js'; | ||
import BaseTypeRef from './base.js'; | ||
@@ -11,4 +11,4 @@ export default class InputObjectRef<T> extends BaseTypeRef implements InputRef<T>, PothosSchemaTypes.InputObjectRef<T> { | ||
constructor(builder: PothosSchemaTypes.SchemaBuilder<Types>, name: string); | ||
implement<Fields extends InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>(options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): InputObjectRef<InputShapeFromFields<Fields>>; | ||
implement(options: PothosSchemaTypes.InputObjectTypeOptions<Types, InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>): InputObjectRef<RecursivelyNormalizeNullableFields<T>>; | ||
} | ||
//# sourceMappingURL=input-object.d.ts.map |
{ | ||
"name": "@pothos/core", | ||
"version": "3.31.1", | ||
"version": "3.31.2", | ||
"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", |
@@ -5,3 +5,2 @@ /* eslint-disable max-classes-per-file */ | ||
InputRef, | ||
InputShapeFromFields, | ||
inputShapeKey, | ||
@@ -38,9 +37,15 @@ RecursivelyNormalizeNullableFields, | ||
implement<Fields extends InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>>>( | ||
options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>, | ||
implement( | ||
options: PothosSchemaTypes.InputObjectTypeOptions< | ||
Types, | ||
InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>> | ||
>, | ||
) { | ||
this.builder.inputType<ImplementableInputObjectRef<Types, T>, Fields>(this, options); | ||
this.builder.inputType< | ||
ImplementableInputObjectRef<Types, T>, | ||
InputFieldsFromShape<RecursivelyNormalizeNullableFields<T>> | ||
>(this, options); | ||
return this as InputObjectRef<InputShapeFromFields<Fields>>; | ||
return this as InputObjectRef<RecursivelyNormalizeNullableFields<T>>; | ||
} | ||
} |
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
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
1047870
15678