Learn about the new jTypes 2.2 (under the hood)

Simpleautomates member casting with type constraintsLightweightrequires only 16 KB gzipped (50 KB minified)Efficientinstantiates classes up to 10X faster than 2.1The reference section will soon be updated with a complete collection of documentation for jTypes 2.2 including examples, notes, articles, and changelogs.

Follow us on Google Plus


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.

Contribute to our repository on GitHub

Watch usStar usFork usCodebrowse development builds and unit testsIssuessubmit error logs, bug reports, and feature requestsPull Requestsprovide code changes and bug fixes

What is jTypes?

jTypes is the most comprehensive and robust JavaScript library for overcoming differential inheritance with prototype-based objects. Its lightweight yet powerful design provides web programmers on any platform or browser the ability to emulate classical inheritance where objects are defined by classes.

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?

Alright, so if you're looking for a more down-to-earth explanation rather than the generic description or tagline, then here's the deal: jTypes will provide you with the ability to develop robust, modular, and scalable application libraries in JavaScript using encapsulation, inheritance, and polymorphism. What exactly does that mean? You know all those keywords from languages such as C++ or C# that you started missing quite badly after you transitioned to JavaScript? You know what we're talking about; all those modifiers of classical inheritance such as virtual, abstract, and override or private, protected, and public that gave you so much more control and freedom with your libraries. Well jTypes lets you use those keywords in JavaScript, so you can develop extremely powerful and robust web applications using the principals of classical inheritance.

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 base,] [Function constructor,] Object definitions);

+

var someInstance = new SomeClass();

jTypes supports IntelliSense in Visual Studio 2012

The following video demonstrates jTypes in Visual Studio 2012 with IntelliSense, which supports real-time class compiling and statement completions for private and public instance contexts (and static class contexts). In jTypes 2.2, it also adds support for new library features such as type constraints, namespaces, and structs. This functionality can be implemented by including the .intellisense.js file found in our .zip download with jTypes in your Visual Studio project.

click = toggle play/pause
mouseover = real-time playback; mouseout = 1.5X

This will also require you to either include reference directives to jTypes in your JavaScript files, or include a single reference directive in the global _references.js file found in the Scripts folder of your ASP.NET project. More information about JavaScript IntelliSense is available on MSDN.