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

How to use interface and type? #249

Closed
5 tasks done
shuyuTech opened this issue Aug 8, 2022 · 3 comments
Closed
5 tasks done

How to use interface and type? #249

shuyuTech opened this issue Aug 8, 2022 · 3 comments

Comments

@shuyuTech
Copy link

Describe the bug

export interface Test1 {
  name: string;
}
export type Test2 = {
  name: string;
}

How to use interface and type?

Reproduction

none

System Info

System:
    OS: Linux 5.16 Fedora Linux 35 (Workstation Edition)
    CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    Memory: 13.52 GB / 31.28 GB
    Container: Yes
    Shell: 5.1.8 - /bin/bash
  Binaries:
    Node: 16.15.1 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/bin/yarn
    npm: 8.11.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 100.0.4896.127
    Firefox: 99.0.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@shuyuTech
Copy link
Author

I want 'interface' and 'type' to be exported in 'auto import. D.ts' like' class'

@shuyuTech
Copy link
Author

What should I do?

@antfu
Copy link
Member

antfu commented Aug 9, 2022

Duplicated #61

@antfu antfu closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2022
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

No branches or pull requests

2 participants