Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Add TypeScript support #4

Open
moshest opened this issue Jun 29, 2019 · 2 comments
Open

Add TypeScript support #4

moshest opened this issue Jun 29, 2019 · 2 comments

Comments

@moshest
Copy link

moshest commented Jun 29, 2019

Could be done by publishing definition file index.d.ts or by publishing a @types/stack-retrace package: https://github.com/DefinitelyTyped/DefinitelyTyped

@kobiburnley
Copy link
Contributor

@moshest stack-retrace is already written in TypeScript and published with the declaration files.
We also recently added "types": "cjs/index.d.ts" in package.json

@moshest
Copy link
Author

moshest commented Jul 1, 2019

Cool!

If you can, export also the type RawSourceMap. Currently I had to require it via:

import { RawSourceMap } from 'stack-retrace/node_modules/source-map';

As this line throws me an error for mismatch type paths:

import { RawSourceMap } from 'source-map';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants