graphql-input-number icon indicating copy to clipboard operation
graphql-input-number copied to clipboard

Import error

Open mjamshadm opened this issue 4 years ago • 0 comments

Hi Team,

I am using garaphql apollo server and getting below error while importing module:- Code Snippet : const {GraphQLInputInt,GraphQLInputFloat} = require **("graphql-input-number"); Error :- Could not find a declaration file for module 'graphql-input-number'. 'c:/node_modules/graphql-input-number/lib/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/graphql-input-number if it exists or add a new declaration (.d.ts) file containing `declare module 'graphql-input-number';

Able to resolve this issue by creating a 'index.d.ts' file with index.js content. It seems like this file is missing from the source code. Please resolve.

mjamshadm avatar Jul 08 '21 15:07 mjamshadm