You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated file should not trigger errors with typescript compilation
Actual behavior
When generating the queries with typescript config strict and noUnusedLocals compilation fails because the import NormalizedCacheObject is never used.
Failed to compile.
./generated/queries.tsx:10:1
Type error: 'NormalizedCacheObject' is declared but its value is never read.
8 | import type React from 'react'
9 | import { getApolloClient } from 'lib/with-apollo'
> 10 | import type { NormalizedCacheObject } from '@apollo/client'
| ^
11 | export async function getServerPageArticle(
12 | options: Omit<Apollo.QueryOptions<Types.ArticleQueryVariables>, 'query'>,
13 | ctx?: any
error Command failed with exit code 1.
Am I missing something in my configuration that would use NormalizedCacheObject?
Expected behavior
Generated file should not trigger errors with typescript compilation
Actual behavior
When generating the queries with typescript config
strict
andnoUnusedLocals
compilation fails because the importNormalizedCacheObject
is never used.Am I missing something in my configuration that would use
NormalizedCacheObject
?Context
codegen.yml
The text was updated successfully, but these errors were encountered: