Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Type support #9

Open
ambhinav opened this issue Jun 17, 2019 · 1 comment
Open

Type support #9

ambhinav opened this issue Jun 17, 2019 · 1 comment

Comments

@ambhinav
Copy link

ambhinav commented Jun 17, 2019

import Xendit from 'xendit-js-node';

This is the error message i find on my IDE:
Could not find a declaration file for module 'xendit-js-node'. '/.../front-end/node_modules/xendit-js-node/src/xendit.js implicitly has an 'any' type.
Try npm install @types/xendit-js-node if it exists or add a new declaration (.d.ts) file containing declare module 'xendit-js-node';ts(7016)

I used npm i --save xendit-js-node to install. Suggestions online include, creating a .d.ts somewhere in the project. However, from the reference code i have seen online, none have a .d.ts file.

edit: I realised that xendit-js-node is specifically for react-native. My project is currently using react-js is it still possible to integrate?

@stanleynguyen stanleynguyen changed the title Unable to import Xendit JS node Type support Jul 30, 2020
@stanleynguyen
Copy link

Consider adding type declarations file

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

No branches or pull requests

2 participants