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