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

[ Bug Report ] Seems to be no way to get intellisense or see the named exports #286

Closed
gunhaxxor opened this issue Jan 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gunhaxxor
Copy link

gunhaxxor commented Jan 25, 2023

Environment

  • node: 18.12.1
  • equal: 0.9.14

Current Behavior

Intellisense/automcomplete?

The recommended way (as far as I can tell) to get intellisense in VS code with Volar is to add ambient declarations to the "@vue/runtime" module:

// components.d.ts
import TestComponent from './components/TestComponent.vue';

declare module '@vue/runtime-core' { 
  export interface GlobalComponents {
    TestComponent: typeof TestComponent
  }
}

export {};

It seems there is no way to import the components (types) from Equal-Vue?

Named imports

Also there seem to be some kind of problem with the type declarations. Vs Code does not understand that the 'equal-vue' module has named exports. The documentation explains that one can import components individually like so:
import { Switch, Alert, etc.. } from 'equal-vue'
and then register them to the vue app. This does work. But. There are no hints from the editor what are the named exports:
image

Expected Behavior

See what are the named exports
A way to get intellisense/typings for the components used in a project

Steps To Reproduce

  1. Create a new vite vue project
  2. Follow the installation instructions for equal-ui
  3. See that there are no named exports

Anything else?

No response

@gunhaxxor gunhaxxor added the bug Something isn't working label Jan 25, 2023
@quatrochan
Copy link
Collaborator

There are no type definition files yet, but PR's are welcome

@quatrochan
Copy link
Collaborator

@Dealerpriest Fixed in last version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants