cli-table
cli-table copied to clipboard
TypeScript support
According to GitHut, TypeScript is now the #5th most popular language on github: https://madnight.github.io/githut/#/pull_requests/2020/3
Can you either add types directly to the package or update documentation on how to do it manually?
npm install cli-table
npm install --save @types/cli-table
tsconfig.json
{
"compilerOptions": {
"esModuleInterop": true
}
}
index.ts
import Table from 'cli-table';
You'll save every developer 10 minutes :)
Good suggestion @kmturley . A PR would be even more welcome if you feel like you want to contribute. :)
Any updates on this? I can submit a PR if you like. I can also port this for Deno if you like. Porting might take sometimes but for the TS, I can finish it this week
@yakesho a PR would be great, thank you! :)
@chrean The project seems to use old JavaScript syntax. Mind if I change it and use ES6 syntax? (e.g. class
, const
, etc...)
That's quite a task but much appreciated if you like to contribute!
One more thing, expresso
seems unmaintained. Mind if I use a newer and maintained test framework (like mocha
or jest
). Other than that, I am already working on the project (just to let you know)
Switching to jest
was in my plans but then I got caught away with other stuff, so that'd be great.
i have just updated ~(not merged yet)~ @types/cli-table
. i will also add them here but i expect that a pr to DefinitelyTyped gets merged faster :)
EDIT: merged now