@pothos/plugin-relay
Advanced tools
Comparing version 3.33.0 to 3.33.1
# Change Log | ||
## 3.33.1 | ||
### Patch Changes | ||
- be5bff07: Update `resolveArrayConnection` return type to reflect that it always returns a non-null | ||
`ConnectionShape` | ||
## 3.33.0 | ||
@@ -4,0 +11,0 @@ |
@@ -34,3 +34,3 @@ import { MaybePromise, SchemaTypes } from '@pothos/core'; | ||
export declare function offsetToCursor(offset: number): string; | ||
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, boolean, T extends NonNullable<T> ? false : { | ||
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, false, T extends NonNullable<T> ? false : { | ||
list: false; | ||
@@ -37,0 +37,0 @@ items: true; |
@@ -34,3 +34,3 @@ import { MaybePromise, SchemaTypes } from '@pothos/core'; | ||
export declare function offsetToCursor(offset: number): string; | ||
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, boolean, T extends NonNullable<T> ? false : { | ||
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, false, T extends NonNullable<T> ? false : { | ||
list: false; | ||
@@ -37,0 +37,0 @@ items: true; |
{ | ||
"name": "@pothos/plugin-relay", | ||
"version": "3.33.0", | ||
"version": "3.33.1", | ||
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -140,3 +140,3 @@ import { decodeBase64, encodeBase64, MaybePromise, SchemaTypes } from '@pothos/core'; | ||
NonNullable<T>, | ||
boolean, | ||
false, | ||
T extends NonNullable<T> ? false : { list: false; items: true }, | ||
@@ -143,0 +143,0 @@ false |
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
374911