nulab / backlog-js

Backlog API version 2 client for browser and node.
https://developer.nulab-inc.com/docs/backlog/
33 stars 13 forks source link

Generate d.ts automatically #50

Closed mmktomato closed 2 years ago

mmktomato commented 2 years ago

Problem

I have to edit dist/backlog.d.ts by myself if I change a type in src/. There's some problems:

Goal

No manually editing dist/backlog.d.ts.

Idea

npm run build-tsd creates declaration files in dist/src/*.d.ts. I want to use the files instead of dist/backlog.d.ts. Can "types": "dist/src/index.d.ts" in package.json do it?

mmktomato commented 2 years ago

Experiment in this branch.