-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.Priority 2: this is not breaking anything but nice to have it addressed.has PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: types
Description
Vue version
3.2.41
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-f88icu?file=src/use-foo.ts
Steps to reproduce
Note: Similar to #2548
- Create a project using TypeScript and Vue 3
- Use the
@vue/tsconfig
config - Create a composable with
markRaw
export function useFoo() {
return markRaw({ foo: 'bar' })
}
What is expected?
TypeScript should be happy
What is actually happening?
TypeScript raises an error.
TS4058: Return type of exported function has or is using name 'RawSymbol' from external module "~/workspace/node_modules/.pnpm/@vue+reactivity@3.2.41/node_modules/@vue/reactivity/dist/reactivity" but cannot be named.
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.Priority 2: this is not breaking anything but nice to have it addressed.has PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: types