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

Type support #9

Description

@ambhinav

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions