Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize exports with autocomplete #68

Open
rosano opened this issue Dec 18, 2018 · 0 comments
Open

Recognize exports with autocomplete #68

rosano opened this issue Dec 18, 2018 · 0 comments

Comments

@rosano
Copy link

rosano commented Dec 18, 2018

I have a module defined inside of this initialization code (I copied it from somewhere else and don't fully understand it). Inside of it, the plugin recognizes exports as type Any, but how can I get it to recognize as object? For example, I want to be able to have a suggestion for XYZMethod, but there are currently no suggestions after typing exports..

function (global, factory) {
	typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
	typeof define === 'function' && define.amd ? define(['exports'], factory) :
	(factory((global.XYZModule = global.XYZModule || {})));
}(this, (function (exports) { 'use strict';

	exports.XYZMethod = function (x) {
		return x;
	};

	Object.defineProperty(exports, '__esModule', { value: true });

})));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant