Coder Social home page Coder Social logo

types's Introduction

Javascript types checker library: useful for javascript strong-typed class creation

Required libraries

serenix_types.js library requires:

  • A library that create the class NSNode (serenix_ns_node.js for example)
  • serenix_object.js
  • serenix_type_utils.js

Serenix.types.Type

SereniX.types.Type is an abstract class and the super class of many predefined type classes. SereniX.types.Type is usable for class creation using Klass.Class (that is in the librabry serenix_class_base.js) method SereniX.types.Type has the following main statics methods:

  • SereniX.types.Type.is : Checks if the given value is typeof of the given type or and instanceof of the given Type Class.

  • SereniX.types.Type.forname : Returns the Type Class of the given type class name

  • SereniX.types.Type.define Makes the given path corresponds to the given Type Class

Predefined Type Classes

Below are the predefined Type Classes:

  • SereniX.types.AnyType
  • SereniX.types.WildcardType
  • SereniX.types.SType //Sized Data Type
  • SereniX.types.ArrayType
  • SereniX.types.RefType
  • SereniX.types.JoinType
  • SereniX.types.ManyToManyJoinType
  • SereniX.types.Enum
  • SereniX.types.VType
  • SereniX.types.Set
  • SereniX.types.Interval
  • SereniX.types.Types
  • SereniX.types.Union
  • SereniX.types.Minus
  • SereniX.types.Intersect
  • SereniX.types.Number
  • SereniX.types.Integer
  • SereniX.types.FloatingPointValue
  • SereniX.types.String
  • SereniX.types.LType
  • SereniX.types.Boolean
  • SereniX.types.Array
  • SereniX.types.List
  • SereniX.types.TList
  • SereniX.types.OList
  • SereniX.types.Pair
  • SereniX.types.Map
  • SereniX.types.ObjectType
  • SereniX.types.VariableType

types's People

Contributors

marckol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.