Skip to content

docs (#3331): clarify imported types on defineProps#3348

Merged
bencodezen merged 3 commits intomainfrom
docs/3331-clarify-imported-types-on-defineProps
Feb 27, 2026
Merged

docs (#3331): clarify imported types on defineProps#3348
bencodezen merged 3 commits intomainfrom
docs/3331-clarify-imported-types-on-defineProps

Conversation

@bencodezen
Copy link
Member

Description of Problem

#3331

Proposed Solution

Add clarifying language on both the composition-api guide as well as the API doc page as well.

Additional Information

@netlify
Copy link

netlify bot commented Feb 22, 2026

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 7fef213
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/69a1cf3283d51d00086dadee
😎 Deploy Preview https://deploy-preview-3348--vuejs.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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Vue TypeScript docs to clarify how defineProps handles imported prop types, addressing confusion around whether “imported types” includes local project files and dependencies.

Changes:

  • Clarifies that Props can be imported via relative imports, path aliases, or external dependencies.
  • Updates script setup API docs to state that imported types can be resolved in dev mode when TypeScript is available.
  • Minor wording tweaks around the Vue 3.3 limitation resolution note.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/guide/typescript/composition-api.md Clarifies imported-type sources for defineProps and adjusts wording around 3.3 limitations.
src/api/sfc-script-setup.md Updates dev-mode inference description for imported types and adjusts wording around 3.3 limitations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bencodezen bencodezen merged commit 04de040 into main Feb 27, 2026
5 checks passed
@bencodezen bencodezen deleted the docs/3331-clarify-imported-types-on-defineProps branch February 27, 2026 17: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.

2 participants