charkour / zundo

🍜 undo/redo middleware for zustand. <700 bytes
https://codesandbox.io/s/zundo-2dom9
MIT License
597 stars 19 forks source link

Revert "setup jsr config" #167

Closed charkour closed 6 months ago

charkour commented 6 months ago

Reverts charkour/zundo#164

It doesn't work for the following reasons:

error[unsupported-ambient-module]: found an ambient module, which is a global augmentation, which are not unsupported
30 | declare module 'zustand/vanilla' {
   |                ^^^^^^^^^^^^^^^^^
   = hint: remove the ambient module declaration

  info: ambient modules are not supported because they can modify the types of a module from outside of that module
  docs: https://jsr.io/go/slow-type-unsupported-ambient-module

error[unsupported-nested-javascript]: referenced a JavaScript module without type declarations from a TypeScript module
  = hint: add a type declaration (d.ts) for the JavaScript module, or rewrite it to TypeScript

  info: JavaScript files with no corresponding declaration require type inference to be type checked
  info: fast check avoids type inference, so referencing a JavaScript file with no type declarations is not supported
  docs: https://jsr.io/go/slow-type-unsupported-nested-javascript

This package contains errors for slow types. Fixing these errors will:

  1. Significantly improve your package users' type checking performance.
  2. Improve the automatic documentation generation.
  3. Enable automatic .d.ts generation for Node.js.