Skip to content

SF-27: clear 6 apps/shared type errors (blocks docs typecheck) - #311

Merged
alexgrozav merged 1 commit into
mainfrom
agent/famille/5e5dac2b
Jul 15, 2026
Merged

alexgrozav merged 1 commit into
mainfrom
agent/famille/5e5dac2b

Conversation

@alexgrozav

Copy link
Copy Markdown
Contributor

Summary

Stage 1 of SF-26. Clears the 6 pre-existing apps/shared type errors that nuxt typecheck surfaces when it traverses apps/docs → apps/shared. These paths are unchecked today, so the fixes are strictly additive and this PR is green on its own. Once merged, Stage 2 (Larousse, SF-28) clears the 24 docs errors + folds in the typecheck wiring to flip docs green.

Changes (all in apps/shared/**)

Undeclared deps — nuxt typecheck reported module-not-found for imports that were never declared:

  • git-url-parse, pkg-types (used by utils/git.ts) and vue (used by components/MorphingGradientBackground.vue) added to apps/shared/package.json as catalog:nuxt (matching the versions apps/docs already pins).
  • No @types/* added. git-url-parse@16 ships its own lib/index.d.ts; @types/git-url-parse is a deprecated no-op stub. pkg-types ships its own types too.

Typing:

  • app/plugins/i18n.ts — the public i18n runtime config was typed {}; annotated it so defaultLocale resolves.
  • modules/config.ts — nuxt.options.site is false | ModuleOptions; guard for the object case before reading .name, and assert the defu result back to the site type (runtime value is a valid site config; the incompatibility is MaybeComputedRef/null variance only).

apps/docs/** is untouched — that's Stage 2.

Test plan

  • pnpm --filter @styleframe/docs typecheck — reproduced via a temporary docs wiring (script + vue-tsc, reverted before commit): 0 apps/shared errors remain; only the 24 pre-existing docs errors are left for Stage 2. No new errors introduced in shared.
  • pnpm format:check (oxfmt) — clean on changed files.
  • oxlint apps/shared/ — clean.
  • Confirmed git-url-parse@16.1.0 resolves types without the deprecated @types stub.

No changeset — apps/shared is an internal Nuxt layer (consumed via workspace, not published); consistent with prior apps/shared history.

Declare the previously-undeclared deps that `nuxt typecheck` surfaced when
traversing apps/docs -> apps/shared, and fix two module-config typings:

- add `git-url-parse`, `pkg-types`, `vue` to apps/shared deps (catalog:nuxt).
  git-url-parse@16 ships its own `lib/index.d.ts`, so no @types stub is
  needed (the @types/git-url-parse package is a deprecated no-op).
- app/plugins/i18n.ts: type the public i18n runtime config so
  `defaultLocale` resolves off `{}`.
- modules/config.ts: guard `nuxt.options.site` (`false | ModuleOptions`)
  before reading `.name`, and assert the defu result back to the site type.

Stage 1 of SF-26. apps/docs untouched (Stage 2, Larousse).
@vercel

vercel Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
styleframe-dev Ready Ready Preview, Comment Jul 14, 2026 7:32pm
styleframe-dev-storybook Ready Ready Preview, Comment Jul 14, 2026 7:32pm

Request Review

@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b064ac7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alexgrozav
alexgrozav merged commit bb7f683 into main Jul 15, 2026
15 checks passed
@alexgrozav
alexgrozav deleted the agent/famille/5e5dac2b branch July 15, 2026 05:25

This branch was successfully deployed

2 active deployments
Preview – styleframe-dev — b064ac7c Deployed Jul 14, 2026 by vercel[bot]
Preview – styleframe-dev-storybook — b064ac7c Deployed Jul 14, 2026 by vercel[bot]
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