pagarme / escriba

:scroll: Logging on steroids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Declaration files .d.ts

davidpvilaca opened this issue · comments

hello everyone 🤘

i'm using escriba in my projects and i always ask about the types. Many npm libs have a types (by community @types or itself generate .d.ts).

Most of my Node projects is written in TypeScript and @types doesn't seem like a good option.. My proposal is to refactor to TypeScript language and then for each published version a type declaration will be automatically generated.

Fork and branch: https://github.com/davidpvilaca/escriba/tree/refactor/typescript

I didn't have time to write types correctly but I hurried to present the idea to get a feedback.