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

feature: add autocompletion when importing libraries #118

Open
Konard opened this issue Sep 2, 2024 · 3 comments
Open

feature: add autocompletion when importing libraries #118

Konard opened this issue Sep 2, 2024 · 3 comments

Comments

@Konard
Copy link
Member

Konard commented Sep 2, 2024

Code

async ({require}) => {
  const { Link } = require('@deep-foundation/deeplinks/imports/minilinks'); 
  const link: Link<number> = {
    // When I write here I want to see autocompletion
}

Additional Information

If we create interface inside our root function and use the interface - typescript works fine. The problem is related only to the require parameter that is of type any and Typescript does not know what that require can return. It is not the same as using builtin require


Forked from deep-foundation/deepcase-app#182 by https://github.com/konard/gh-org-migrator

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
@Konard and others