Skip to content

TypeScript symbols is empty inside closure (like jQuery plugins) #8218

Closed
@jrieken

Description

@jrieken

From @Ciantic on January 2, 2016 8:38

I tried developing basic jQuery plugin with TS, looks like the symbols list is totally empty if I use following code:

/// <reference path="./typings/tsd.d.ts" />
(function ($: JQueryStatic) {

    interface Anything {
        something : string
    }

    function func() {
    }

})(jQuery);

I think it should recgonize the whole file spanning closure and not let it ruin the symbols listing.

Copied from original issue: microsoft/vscode#1741

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIRelates to the public API for TypeScriptBugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions