Skip to content

feature: add autocompletion when importing libraries #182

@FreePhoenix888

Description

@FreePhoenix888

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions