Skip to content

types: fix remaining svelte-check issues (74 errors → 0)#493

Merged
gka merged 5 commits into
mainfrom
types/fix-remaining-issues
Feb 25, 2026
Merged

types: fix remaining svelte-check issues (74 errors → 0)#493
gka merged 5 commits into
mainfrom
types/fix-remaining-issues

Conversation

@gka

@gka gka commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • AxisX/AxisY: updated tickFormat prop to use TickFormatFunction (3-arg signature with ticks array) instead of narrower inline function types
  • Frame: fill/stroke now accept boolean | string; true maps to 'currentColor'
  • RectX/RectY: changed generic constraint from DataRecord to DataRow so raw value arrays (e.g. [1, 2, 3]) are accepted as data, matching runtime behavior
  • PlotOptions: made axisProps and axisOptions optional (?:) in the fx/fy facet scale option types
  • Tests: changed onclick handler type from MouseEvent to Event to match MarkEventHandler signature; removed stale @ts-expect-error in customMark test
  • Routes/examples: fixed Datasets import (not exported), strokeWidth/opacity string→number, null checks in +layout.svelte, GridX/GridY ticksdata prop, exampleImages typing, animate:slideanimate:flip
  • CI: run svelte-check in CI workflow from now on

Test plan

  • pnpm check — 0 errors (was 74), 30 warnings (unchanged)
  • pnpm test — 675 tests passing

🤖 Generated with Claude Code

resolves #481

gka and others added 2 commits February 25, 2026 00:42
- AxisX/AxisY: use TickFormatFunction (3-arg) for tickFormat prop type
- Frame: accept boolean fill/stroke, converting true to 'currentColor'
- RectX/RectY: change generic from DataRecord to DataRow to allow raw value arrays
- PlotOptions: make axisProps/axisOptions optional in fx/fy scale types
- Tests: use Event instead of MouseEvent for onclick handler types
- Tests: remove stale @ts-expect-error in customMark test
- Routes/examples: fix Datasets import, string-vs-number props, null checks,
  GridX/GridY ticks→data prop, exampleImages typing, animate:slide→flip

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Feb 24, 2026

Copy link
Copy Markdown

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit 47469ac
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/699e3c7b1f06d3000808d588
😎 Deploy Preview https://deploy-preview-493--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-493.0

Install it with:

npm install svelteplot@pr-493
# or install the specific version
npm install svelteplot@0.10.3-pr-493.0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a77e2eb16e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib/marks/RectX.svelte Outdated
@github-actions

Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-493.1

Install it with:

npm install svelteplot@pr-493
# or install the specific version
npm install svelteplot@0.10.3-pr-493.1

@github-actions

Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-493.2

Install it with:

npm install svelteplot@pr-493
# or install the specific version
npm install svelteplot@0.10.3-pr-493.2

@github-actions

Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-493.3

Install it with:

npm install svelteplot@pr-493
# or install the specific version
npm install svelteplot@0.10.3-pr-493.3

@gka gka merged commit b6267ff into main Feb 25, 2026
8 checks passed
@gka gka deleted the types/fix-remaining-issues branch February 25, 2026 00:07
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.

Remove svelte-check issues in src/routes

1 participant