Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing util.d.ts in npm build #9

Open
har0ke opened this issue Apr 8, 2020 · 6 comments
Open

Missing util.d.ts in npm build #9

har0ke opened this issue Apr 8, 2020 · 6 comments

Comments

@har0ke
Copy link

har0ke commented Apr 8, 2020

StringObject interface from utils.d.ts cannot be found when installing this API through npm.

Error Message when building the first usage example from the readme file.

node_modules/@stewartmcgown/grammarly-api/build/lib/connection.d.ts:4:34 - error TS2304: Cannot find name 'StringObject'.
 
 4 export interface Headers extends StringObject {

node_modules/@stewartmcgown/grammarly-api/build/lib/responses.d.ts:46:23 - error TS2304: Cannot find name 'StringObject'.
 
 46     extra_properties: StringObject;
@tuanle07
Copy link

@har0ke : What did you do to resolve this issue?

@tuanle07
Copy link

@stewartmcgown : I was trying to integrate this with an angular project but haven't got any success so far. It keeps giving an error saying Buffer is not defined in the auth.js file.

@stewartmcgown
Copy link
Owner

This is a node library

@tuanle07
Copy link

@stewartmcgown : is there a way to integrate it with the Angular frontend pls? :).

@stewartmcgown
Copy link
Owner

No, CORS would block the request

@aryabharat
Copy link

How can we use this in Typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants