Skip to content

Comments

Fix TypeScript definitions for framework integrations (v1.1.1)#42

Merged
clamstew merged 1 commit intomainfrom
publish-v1.1.1-fix-typings
Nov 28, 2025
Merged

Fix TypeScript definitions for framework integrations (v1.1.1)#42
clamstew merged 1 commit intomainfrom
publish-v1.1.1-fix-typings

Conversation

@clamstew
Copy link
Owner

  • Fixed broken import paths in React/Preact/Remix type definitions
  • Created dedicated entry point files (src/react.ts, src/preact.ts, src/remix.ts)
  • Type paths now correctly resolve (./core instead of ../../../../core)
  • Updated vite.config.ts to use new entry points
  • Configured vite-plugin-dts with pathsToAliases option

This fixes the issue where TypeScript couldn't resolve imports from 'jods/react', 'jods/preact', etc.

Description

Please include a summary of the changes and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

AI Optimization Checklist

  • I've run pnpm run ai:sync to verify AI-optimized files are in sync
  • I've generated AI-optimized versions for any new complex files
  • I've reviewed all generated AI-optimized files for accuracy

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

- Fixed broken import paths in React/Preact/Remix type definitions
- Created dedicated entry point files (src/react.ts, src/preact.ts, src/remix.ts)
- Type paths now correctly resolve (./core instead of ../../../../core)
- Updated vite.config.ts to use new entry points
- Configured vite-plugin-dts with pathsToAliases option

This fixes the issue where TypeScript couldn't resolve imports from 'jods/react', 'jods/preact', etc.
@clamstew clamstew merged commit ecbaaf9 into main Nov 28, 2025
1 of 2 checks passed
@clamstew clamstew deleted the publish-v1.1.1-fix-typings branch November 28, 2025 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant