Registry / testing / graphql-typings

graphql-typings

JSON →
library0.0.1-beta-2jsnpmunverified

Community type definitions for graphql-js, providing TypeScript interfaces for GraphQL schema building and execution. This package (v0.0.1-beta-2) is a legacy, unmaintained beta that predates the official graphql package's built-in types. It requires manual installation via the typings tool and is not compatible with modern TypeScript module resolution. Superseded by the official graphql package's own type definitions, making this package unnecessary for all current use cases.

npm install graphql-typings
INSTALL
IMPORT
SIG · GRAPHQL-TYPINGS
G
graphql-typings
testingjavascriptv0.0.1-beta-2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GraphQLSchema
import { GraphQLSchema } from 'graphql' (with types built-in)
import { GraphQLSchema } from 'graphql-typings'
This package never exported symbols; it only provided ambient declarations. Use the official graphql package directly.
GraphQLObjectType
import { GraphQLObjectType } from 'graphql'
/// <reference path='path/to/graphql-typings' /> (ambiguous; not recommended)
Use built-in types from graphql instead.
graphql (default export)
import { graphql } from 'graphql'
import graphql from 'graphql-typings'
graphql-typings never exported; all symbols come from the main graphql package.

Demonstrates using official graphql package instead of the deprecated graphql-typings.

// graphql-typings is deprecated; use official graphql package // npm install graphql import { GraphQLSchema, GraphQLObjectType, GraphQLString } from 'graphql'; const schema = new GraphQLSchema({ query: new GraphQLObjectType({ name: 'RootQueryType', fields: { hello: { type: GraphQLString, resolve() { return 'world'; } } } }) });
Debug
Known issues
deprecatedgraphql-typings is deprecated; official graphql package (>=0.9.0) ships its own TypeScript types.
fix
Remove graphql-typings dependency. Use npm install graphql and rely on its built-in types.
affects: >=0.0.0
gotchagraphql-typings only provides ambient type declarations; it does not export any runtime code.
fix
Do not import from graphql-typings. Import from graphql instead.
affects: >=0.0.0
gotchaTypings install path uses GitHub shorthand; will not work with npm or yarn.
fix
Use npm install graphql for both types and runtime.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'graphql-typings' or its corresponding type declarations.
Package is installed via typings, not npm; TypeScript cannot resolve without proper typings config.
fix
Remove reference to graphql-typings. Add graphql as an npm dependency with `npm install graphql`.
Missing type definitions for graphql symbols after installing graphql-typings.
Typings might not be correctly configured or the package is outdated.
fix
Replace with official graphql package and use its built-in types. Delete any old typings references.
Upgrade
Version history
0.0.1-beta-2latest on npm
Audit
Dependencies
graphqlrequiredProvides runtime types that the typings augment
Agent activity
6 hits · last 30 days
node
6
Resources
graphql-typings — npm install graphql-typings · libregistry