Skip to content

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

@Ciantic

Description

@Ciantic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions