Learn how jTypes 2.2 works (under the hood)
Simpleautomates member casting with type constraintsLightweightrequires only 13 KB gzipped (42 KB minified)Efficientvirtualizes object accesses using proxiesThis file size is estimated based on the current size of the most recent build of jTypes. It is not representative of the final size of the upcoming version of the library.
Contribute to our repository on GitHub
Check the status of our content services
Clustered Storagetrack our geo-replicated storage servicesWorldwide Cachingmonitor our geo-optimized CDN endpointsReliable Supportrest assured with a 99.9% uptime SLAUpdates are issued by datacenter administrators whenever there are any status changes to YELLOW or RED due to service interruptions or scheduled maintenance.
What is jTypes?
What are the requirements?
jTypes requires ECMAScript 5, which is supported by any modern platform or web browser (and Internet Explorer 9+):
What does that mean?
How can I install jTypes in Node.js?
$ npm install jtypes
Enabling ECMAScript 6 features with the --harmony flag is recommended for jTypes 2.2 when using Node.js preview release 0.11.0 or higher.
How do I use jTypes?
var SomeClass = jTypes([String modifiers,] [Class baseClass,] [Function constructor,] Object definitions);
var someInstance = new SomeClass();
jTypes supports Intellisense in Visual Studio 2012
The following video demonstrates jTypes Intellisensing in Visual Studio 2012, which now supports real-time class compiling and statement completions for private, protected, and public instance contexts, along with static class contexts as well. By including the .intellisense.js file found in our .zip download with jTypes in your Visual Studio project, this functionality can be implemented. Statement completions work best when jTypes classes are defined in separate files, but fallback methods have been implemented when Visual Studio Intellisensing attempts to override certain function contexts. It should be noted that the current build does not support value-syntax (packaged member definitions) at this time, but does support key-syntax and separated definitions objects. We are also currently working on providing Intellisense plugins for Sublime Text (versions 2 and 3), Emacs, and Vim.
click = toggle play/pause
mouseover = real-time playback; mouseout = 1.5X