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

Publish a type declaration file with the package (to use with typescript) #275

Open
ghost opened this issue Mar 26, 2019 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Mar 26, 2019

This package can't be used directly in a Typescript project without getting the following error:

semantic error TS7016 Could not find a declaration file for module '@cognite/griff-react'. './node_modules/@cognite/griff-react/lib/index.js' implicitly has an 'any' type.
  Try `npm install @types/cognite__griff-react` if it exists or add a new declaration (.d.ts) file containing `declare module '@cognite/griff-react';`
@ghost ghost added the bug Something isn't working label Mar 26, 2019
@evancharlton
Copy link
Contributor

ACK; TS is a focus area of ours. Stay tuned.

In the meantime, add a declaration file to your project.

@evancharlton evancharlton self-assigned this Mar 26, 2019
@evancharlton evancharlton added enhancement New feature or request and removed bug Something isn't working labels Mar 26, 2019
@evancharlton evancharlton removed their assignment Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant