TS2742
error TS2742: The inferred type of ‘
ProductDeleteDocument
‘ cannot be named without a reference to ‘graphql-tag/node_modules/graphql/language/ast
‘. This is likely not portable. A type annotation is necessary.
Broken Code ❌
1 |
|
Fixed Code ✔️
TypeScript asks for a type annotation to explicitly resolve the inferred type, so let’s add a type annotation:
1 |
|