Closed angelozerr closed 9 years ago
@gamerson here a sample with YUI and multiple type validation :
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
})
See https://github.com/angelozerr/tern-lint/commit/154f10c519b15065ea1218684573bbecac9c2d5a