mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 510 forks source link

Remove the Type object from the public API #2825

Open AmraniCh opened 3 years ago

AmraniCh commented 3 years ago

First, I want to congratulate you all on working so hard for making this great library.

Summary

When I was looking in the Core.js I've noticed that the Type object is not mentioned in the Mootools official documentation in the core section (except once used in one example on the Array page), although it is available to the end-users. The Type object offers only the Type.is[Type] functions to check the passed object type, which can be achieved using the Mootools typeOf function or even using the TypeInstance.$family function that injected to all the native JavaScript types defined by ECMA spec.

Suggestion

The Type object must be for the internal usage only, In order to clear up any confusion for library users.