angelozerr / tern-lint

Tern plugin to validate JavaScripts files to collect semantic errors
http://ternjs.net/
MIT License
62 stars 13 forks source link

Support for multiple types parameters #36

Closed angelozerr closed 9 years ago

angelozerr commented 9 years ago

See https://github.com/angelozerr/tern-lint/commit/154f10c519b15065ea1218684573bbecac9c2d5a

angelozerr commented 9 years ago

@gamerson here a sample with YUI and multiple type validation :

multitypelintwithyui

YUI().use("node", function(Y) {

    Y.one(""); // OK => Y.one waits String

    Y.one(document.getElementById("MyId")); // OK => Y.one waits Element

    Y.one(10); // NOK => Y.one doesn't wait Number

})