wirecardBrasil / moip-sdk-node

Módulo Node.js para integração com API Moip v2
MIT License
58 stars 14 forks source link

Add @types/moip-sdk-node #32

Closed rodrigooler closed 6 years ago

rodrigooler commented 6 years ago

Is it possible to integrate the current sdk with typescript? For example @ types/moip-sdk-node

somentelucas commented 6 years ago

Hi @rodrigooler, I have never actually tried and don't really know what the dependencies would be. Did you manage to use this SDK with Typescript or still looking for the answer?

zeowna commented 6 years ago

Hi guys, The SDK works with Typescript without a declaration file ".d.ts", also known as "@types/module-name". This file would help the developers to integrate, because it must contain all javascript objects and functions for this module as a "Header file".

Checkout these links: Official link http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html DefinitelyTyped https://github.com/DefinitelyTyped/DefinitelyTyped dts-gen: A TypeScript Definition File Generator https://github.com/Microsoft/dts-gen

somentelucas commented 6 years ago

Thanks, @zeowna!

Kronhyx commented 4 years ago

any update or reference about @types/moip-sdk-node ?