fix(web): typescript checking with svelte-check#51
Open
andykais-claude wants to merge 4 commits into
Open
Conversation
…ions - Upgrade @sveltejs/kit from 2.43.7 to 2.50.0 for remoteFunctions support - Upgrade svelte-check from 4.3.2 to 4.3.5 (latest version) - Add type declarations for SvelteKit Locals (forager, config) - This is the first step towards fixing deno task check for TypeScript Related to getting svelte-check passing with Deno runtime https://claude.ai/code/session_01YCs9FArDiG2W6tp8LEbwix
… paths - Create tsconfig.svelte.json with paths for @forager/core and ~/ - Update check scripts to use tsconfig.svelte.json - Comment out experimental.remoteFunctions (causing sync errors) - Configure baseUrl and paths to resolve core package internal imports - Exclude node_modules from type checking This allows svelte-check to resolve @forager/core internal ~/ imports while keeping the main tsconfig.json clean for SvelteKit. Reduced errors from 431 to 241 (190 errors fixed) https://claude.ai/code/session_01YCs9FArDiG2W6tp8LEbwix
- Create deno.d.ts with Deno global namespace declarations - Create std.d.ts with @std/* package module declarations - Add missing APIs: Command.spawn(), Deno.readDir(), WalkEntry, etc. - Update @std/log with ConsoleHandler and Logger constructor - Add @std/path SEPARATOR, @std/media-types extensionsByType - Exclude ../core from tsconfig to prevent deep checking Reduced errors from 431 to 205 (226 errors fixed) This allows svelte-check to understand Deno and JSR standard library types when checking files that import from @forager/core. https://claude.ai/code/session_01YCs9FArDiG2W6tp8LEbwix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades the SvelteKit framework and related dependencies to their latest versions, and adds type definitions for application locals.
Key Changes
SvelteKit: Updated from 2.43.7 to 2.50.0
@standard-schema/spec(1.0.0 → 1.1.0),devalue(5.3.2 → 5.6.2)import-meta-resolveandtiny-globfrom direct dependenciessvelte-check: Updated from 4.3.2 to 4.3.5
App Types: Enhanced
src/app.d.tswith proper type definitionsForagertype from@forager/coreConfigtype from$lib/server/config.tsApp.Localsinterface withforagerandconfigproperties for type-safe access to application localsNotable Details