Skip to content

docs(useCanonical): type link array as unhead Link[] (8897318)#294

Merged
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-8897318
Jul 20, 2026
Merged

docs(useCanonical): type link array as unhead Link[] (8897318)#294
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-8897318

Conversation

@IgorShevchik

Copy link
Copy Markdown
Collaborator

Syncs upstream nuxt/ui commit 8897318docs(useCanonical): type link array as unhead Link[] (#6748).

b24ui port

  • docs/app/composables/useCanonical.ts — b24ui's composable carried the identical inline annotation. Added import type { Link } from '@unhead/vue' and changed const links: Array<{ rel: string, href: string, type?: string }> to const links: Link[], for type consistency with useHead. (@unhead/vue@2.1.15 is present; the canonical/alternate entries are assignable to Link.)

Tests

Docs-app type-only change — no runtime/theme/test/snapshot impact. Suite unchanged: 5565 passed / 6 skipped.

Verify (CI=true)

dev:prepare · lint · typecheck — green locally; test · build covered by CI.

Ledger: cursor advanced to 8897318 (upstream v4 HEAD); previous entry 0a1803d reconciled to PR #293.

🤖 Generated with Claude Code


Generated by Claude Code

Syncs upstream nuxt/ui commit 8897318 (#6748). In the docs app's useCanonical
composable, replace the hand-written inline type for the <head> links with the
canonical Link type from @unhead/vue.

- docs/app/composables/useCanonical.ts: import type { Link } from '@unhead/vue'
  and change Array<{ rel, href, type? }> to Link[].

Docs-app type-only change. Suite: 5565 passed / 6 skipped.

Ledger: cursor -> 8897318; previous entry 0a1803d reconciled to PR #293.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
@IgorShevchik
IgorShevchik merged commit 84856d0 into main Jul 20, 2026
1 check passed
@IgorShevchik
IgorShevchik deleted the sync/nuxt-8897318 branch July 20, 2026 07:28
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.

2 participants