thetarnav / solid-devtools

Library of developer tools, reactivity debugger & Devtools Chrome extension for visualizing SolidJS reactivity graph
https://chrome.google.com/webstore/detail/solid-devtools/kmcfjchnmmaeeagadbhoofajiopoceel
MIT License
548 stars 21 forks source link

Fix overlay type exports #260

Closed nightkr closed 1 year ago

nightkr commented 1 year ago

Currently, the types are built but ignored by tsc:

src/main.tsx:11:39 - error TS7016: Could not find a declaration file for module '@solid-devtools/overlay'. '/home/n/Documents/stackable/stackable-admin/node_modules/@solid-devtools/overlay/dist/prod.js' implicitly has an 'any' type.
  There are types at '/home/n/Documents/stackable/stackable-admin/node_modules/@solid-devtools/overlay/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@solid-devtools/overlay' library may need to update its package.json or typings.

11 import { attachDevtoolsOverlay } from '@solid-devtools/overlay';

This PR registers them in the package.json so that they are picked up correctly.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: e478a3c419a5fb4c4b6a78e5686f0a5cd169582a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages | Name | Type | | ------------------------- | ----- | | @solid-devtools/overlay | Patch | | solid-devtools | Patch | | @solid-devtools/extension | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR