Closed
Description
Describe the bug
If you're following the guide at https://paneforge.com/docs/examples/collapsible-panes, you'll need to specify the type of the pane as typeof Pane.
However, this currently appears to be broken — TypeScript seems to misinterpret the type, as demonstrated in this minimal reproduction repo:
Reproduction
👉 https://github.com/Nico-Mayer/paneforge_example
- Clone the repo
- Run npm install
- Check the TypeScript error in +page.svelte
The same issue persists with the @next
version of Paneforge.
Logs
System Info
System:
OS: macOS 15.5
CPU: (8) arm64 Apple M2
Memory: 608.98 MB / 24.00 GB
Shell: 4.0.2 - /opt/homebrew/bin/fish
Binaries:
Node: 24.3.0 - ~/.local/state/fnm_multishells/71277_1751823023582/bin/node
npm: 11.4.2 - ~/.local/state/fnm_multishells/71277_1751823023582/bin/npm
pnpm: 10.12.4 - /opt/homebrew/bin/pnpm
Browsers:
Brave Browser: 138.1.80.115
Chrome: 137.0.7151.120
Safari: 18.5
npmPackages:
@sveltejs/kit: ^2.16.0 => 2.22.2
paneforge: ^1.0.0 => 1.0.0
svelte: ^5.0.0 => 5.35.2
Severity
annoyance