jlfwong / jlfwong/speedscope

Publish type declarations

Open
#356 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

speedscope is written in TypeScript, but when you `npm install speedscope`, you only get the generated JavaScript, not any of the type declarations (`.d.ts` files).

I have some TypeScript code in my application to convert profile data from pyinstrument format to speedscope's format. So being able to import the types in `file-format-spec.ts` would be quite helpful for getting this right.

This could be achieved either by putting `file-format-spec.ts` (which has no dependencies) in the npm release, or by adding `--declaration` to the `tsc` command to force it to output `.d.ts` files.

Related to #16

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.