Provides a typing and type-reflection system for ECMAScript (JavaScript) object-oriented programming functionality. Type Class
Invokes a base method with specified arguments.
any
A value of the class that the base method returns. If the base method does not return a value, no value is returned.
Creates a callback method, given the function to callback and the parameter to pass to it.
The function for which the callback method will be created.
The parameter to pass to the function. This parameter can be null, but it cannot be omitted.
Function
The callback function.
Creates a delegate function that keeps the context from its creation. The context defines the object instance to which the this keyword points.
The object instance that will be the context for the function. This parameter can be null.
The function from which the delegate is created.
Function
The delegate function.
Returns the base implementation of a method from the base class of the specified instance.
The instance for which the base method is requested.
The name of the method to retrieve as a reference.
any
Returns the base class of the instance. Use the getBaseType method to retrieve the base class of the instance.
Returns an Array object that contains the list of interfaces that the type implements. Use the getInterfaces function to return a list of objects that define the interfaces on a type object. This enables you to enumerate the array to determine the object's interfaces.
Array<any>
An Array object that contains the list of interfaces that the type implements.
Returns the name of the type of the instance.
string
A string representing the fully qualified name of the type of the instance.
Returns an Array object containing references to all the root namespaces of the client application. This method is static and is invoked without creating an instance of the object. Use the getRootNamespaces function to return an array containing references to all the root namespaces of the client application.
any
An object containing references to all the root namespaces of the client application.
Determines whether a class implements a specified interface type.
The interface to test.
boolean
true if the class implements interfaceType; otherwise, false.
Determines whether an instance inherits from a specified class.
The fully qualified name of the class to test as a base class for the current instance.
boolean
true if the instance inherits from parentType; otherwise, false.
Initializes the base class and its members in the context of a given instance, which provides the model for inheritance and for initializing base members.
The instance to initialize the base class for. Usually this.
(Optional) The arguments for the base constructor. Can be null.
any
Returns a value that indicates whether the specified type is a class. This method is static and can be invoked without creating an instance of the object.
The type to test.
boolean
true if the specified type is a class; otherwise, false.
Indicates whether the specified type is an enumeration.
The type to test.
boolean
true if the type is an enumeration; otherwise, false.
Get a value that indicates whether the specified type is an integer of flags.
boolean
true if the type is an integer of flags; otherwise, false.
Determines whether an instance implements an interface.
The instance on which the interface is tested.
boolean
Returns a value that indicates whether an object is an instance of a specified class or of one of its derived classes.
The object to test.
boolean
true if instance is an instance of the class; false if instance does not implement the interface, or if it is undefined or null.
Returns a value that indicates whether the specified type is an interface. This is a static member that is invoked directly without creating an instance of the class.
The type to test.
boolean
true if the specified type is an interface; otherwise, false.
Returns a value that indicates whether the specified object is a namespace. This is a static member that is invoked directly without creating an instance of the class.
The object to test.
boolean
true if the specified object is a namespace; otherwise, false.
Returns an instance of the type specified by a type name. This is a static member that is invoked directly without creating an instance of its class.
A string that represents a fully qualified class name. Can be null.
(Optional) The namespace that contains the class.
any
The class represented by typeName, or null if a class that matches typeName does not occur in the namespace.
Registers a class as defined by a constructor with an optional base type and interface type.
A string that represents the fully qualified name of the type.
(Optional) The base type.
(Optional) An unbounded array of interface type definitions that the type implements.
any
The registered type.
Registers an enumeration.
The fully-qualified name of the enumeration.
(Optional) true if the enumeration is a collection of flags; otherwise, false.
Registers an interface defined by a constructor.
A string that represents the fully qualified name of the class to be registered as an interface.
any
The registered interface.
Creates a namespace. This member is static and can be invoked without creating an instance of the class.
A string that represents the fully qualified namespace to register.
Copies members from the base class to the prototype associated with the derived class, and continues this process up the inheritance chain. This enables you to reflect on the inherited members of a derived type. Use the resolveInheritance method to reflect on the inherited members of a derived type. You invoke this method from the type that you want to reflect on. The resolveInheritance method copies members from the base class to the prototype associated with the derived class, and continues this process up the inheritance chain. If the derived type overrides a base type member, the base type member is not copied to the derived type's prototype. After invoking a derived type's resolveInheritance method, you can examine the members of the derived type to discover all members, which includes inherited members.