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

Types/Typescript support #98

Open
james-pre opened this issue Aug 4, 2024 · 0 comments · May be fixed by #99
Open

Types/Typescript support #98

james-pre opened this issue Aug 4, 2024 · 0 comments · May be fixed by #99

Comments

@james-pre
Copy link

Currently, Postject does not make types available for the Javascript API, so it is unwieldy to use with strict Typescript. Strict Typescript gives an error when importing from postject.

Could not find a declaration file for module 'postject'. '<NPM project root>/node_modules/postject/dist/api.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/postject` if it exists or add a new declaration (.d.ts) file containing `declare module 'postject';`ts(7016)
@james-pre james-pre linked a pull request Aug 5, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant