Class: Interface

barejs.decl~Interface()

new Interface()

Base class for interfaces

Source:

Extends

Methods

hasOwnProperty(_name) → {boolean}

A SpecialType is not instanceof Object, but does have the Object.prototype.hasOwnProperty method.

Parameters:
Name Type Description
_name string

The name of the property to check

Inherited From:
Source:
Returns:

True if the object has a direct property with _name, false otherwise.

Type
boolean

toString() → {string}

toString for Interface.

Source:
Returns:

The string [interface InterfaceName], where InterfaceName is the name of the interface constructor function, or "Interface" for anonymous interfaces.

Type
string