oslabs-beta / solid-rewind

Time Travel Debugger for SolidJS
https://solidrewind.io
94 stars 3 forks source link

Typescript support #19

Open frozar opened 1 year ago

frozar commented 1 year ago

The rewind feature in a SolidJS is really a must for me, so thank you for your effort in this direction.

I'm trying to use your projet in my application, and in VSCode, at the import line:

import Rewind from "solid-rewind";

I get the following error from TypeScript:

Could not find a declaration file for module 'solid-rewind'. '/home/frozar/wk/flaxib/wk/scolaire/front/node_modules/solid-rewind/src/Rewind.jsx' implicitly has an 'any' type.
  Try `npm i --save-dev @types/solid-rewind` if it exists or add a new declaration (.d.ts) file containing `declare module 'solid-rewind';`ts(7016)

I tried the proposed command npm i --save-dev @types/solid-rewind but the package is not available.

Do you plan to support TypeScript natively?

willemrosenthal commented 1 year ago

Hi, thanks for briging this to our attention, We'll get right on it.