Microsoft/TypeScript

Unable to get intellisense from IIFE functions

Open

#49.742 aberto em 29 de jun. de 2022

Ver no GitHub
 (0 comments) (1 reaction) (0 assignees)TypeScript (6.726 forks)batch import
Experience EnhancementHelp WantedSuggestion

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.68.1
  • OS Version: Windows_NT x64 10.0.19044

Steps to Reproduce:

  1. Create a object.
/** @namespace a */
var a = {};
  1. Add a property to object in function (IIFE)
(function(){
  /** @type {boolean} */
  a.b = false;
})();

It's show any when hover a.b, not boolean. And you will not see the IntelliSense when typing a.. image image

Guia do colaborador