Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generics in defineemits cannot be defined separately from the TS file #4827

Closed
yangdan8 opened this issue Oct 21, 2021 · 1 comment
Closed

Comments

@yangdan8
Copy link

Version

3.2.20

Reproduction link

codesandbox.io

Steps to reproduce

// h.vue
import { XX } from './xx.d.ts';
const emit = defineEmits();

// xx.d.ts
export type XX = {(e:'xxx'):void};

What is expected?

--

What is actually happening?

Page operation error


--

@LinusBorg
Copy link
Member

This is in principle the same issue as #4294

I'll close this as a duplicate.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants