fix: update nuxt-graphql and extractNodes typing (maybe => undefined instead of null)

This commit is contained in:
2026-01-28 21:13:31 -05:00
parent 21a7036ef5
commit 27f4f73148
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
},
"dependencies": {
"@iconify-json/lucide": "^1.2.87",
"@lewebsimple/nuxt-graphql": "^0.6.1",
"@lewebsimple/nuxt-graphql": "^0.6.6",
"@nuxt/ui": "4.3.0",
"@nuxtjs/device": "4.0.0",
"@nuxtjs/seo": "^3.4.0",

View File

@@ -1,4 +1,4 @@
// Helper: Extracts nodes from a GraphQL connection object, returning an empty array if nodes are absent.
export function extractNodes<T>(connection: { nodes?: readonly T[] } | null | undefined): readonly T[] {
export function extractNodes<T>(connection: { nodes?: T[] } | undefined): T[] {
return connection?.nodes ?? [];
}