Typeg
Typeg generates type definitions for TypeScript using decorators using Prettier.
@Times
creates similar type definitions such as Promise.all
easily.
Currently, It will only work where you can define TypeScript decorators.
yarn typeg promise.d.ts --out _promise.d.ts
Other examples are here!
Usage
npm install -D prettier typeg
// or
yarn add -D prettier typeg
npx typeg <filepath> --out <dirpath>
// or
yarn typeg <filepath> --out <dirpath>