UNPKG

mmir-tooling

Version:
174 lines (100 loc) 4.46 kB
**[mmir-tooling 7.0.0-beta1](../README.md)** > [Globals](../README.md) / [mmir-lib](../modules/mmir_lib.md) / RequireJsDefine # Interface: RequireJsDefine ## Hierarchy * [Function](mmir_lib.requirejs.md#function) ↳ **RequireJsDefine** ## Index ### Properties * [Function](mmir_lib.requirejsdefine.md#function) * [arguments](mmir_lib.requirejsdefine.md#arguments) * [caller](mmir_lib.requirejsdefine.md#caller) * [length](mmir_lib.requirejsdefine.md#length) * [name](mmir_lib.requirejsdefine.md#name) * [prototype](mmir_lib.requirejsdefine.md#prototype) ### Methods * [[Symbol.hasInstance]](mmir_lib.requirejsdefine.md#[symbol.hasinstance]) * [apply](mmir_lib.requirejsdefine.md#apply) * [bind](mmir_lib.requirejsdefine.md#bind) * [call](mmir_lib.requirejsdefine.md#call) * [toString](mmir_lib.requirejsdefine.md#tostring) ## Properties ### Function • **Function**: FunctionConstructor ___ ### arguments • **arguments**: any *Inherited from [RequireJs](mmir_lib.requirejs.md).[arguments](mmir_lib.requirejs.md#arguments)* ___ ### caller • **caller**: [Function](mmir_lib.requirejs.md#function) *Inherited from [RequireJs](mmir_lib.requirejs.md).[caller](mmir_lib.requirejs.md#caller)* ___ ### length • `Readonly` **length**: number *Inherited from [RequireJs](mmir_lib.requirejs.md).[length](mmir_lib.requirejs.md#length)* ___ ### name • `Readonly` **name**: string *Inherited from [RequireJs](mmir_lib.requirejs.md).[name](mmir_lib.requirejs.md#name)* Returns the name of the function. Function names are read-only and can not be changed. ___ ### prototype • **prototype**: any *Inherited from [RequireJs](mmir_lib.requirejs.md).[prototype](mmir_lib.requirejs.md#prototype)* ## Methods ### [Symbol.hasInstance] ▸ **[Symbol.hasInstance]**(`value`: any): boolean *Inherited from [RequireJs](mmir_lib.requirejs.md).[[Symbol.hasInstance]](mmir_lib.requirejs.md#[symbol.hasinstance])* Determines whether the given value inherits from this function if this function was used as a constructor function. A constructor function can control which objects are recognized as its instances by 'instanceof' by overriding this method. #### Parameters: Name | Type | ------ | ------ | `value` | any | **Returns:** boolean ___ ### apply ▸ **apply**(`this`: [Function](mmir_lib.requirejs.md#function), `thisArg`: any, `argArray?`: any): any *Inherited from [RequireJs](mmir_lib.requirejs.md).[apply](mmir_lib.requirejs.md#apply)* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. #### Parameters: Name | Type | Description | ------ | ------ | ------ | `this` | [Function](mmir_lib.requirejs.md#function) | - | `thisArg` | any | The object to be used as the this object. | `argArray?` | any | A set of arguments to be passed to the function. | **Returns:** any ___ ### bind ▸ **bind**(`this`: [Function](mmir_lib.requirejs.md#function), `thisArg`: any, ...`argArray`: any[]): any *Inherited from [RequireJs](mmir_lib.requirejs.md).[bind](mmir_lib.requirejs.md#bind)* For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters. #### Parameters: Name | Type | Description | ------ | ------ | ------ | `this` | [Function](mmir_lib.requirejs.md#function) | - | `thisArg` | any | An object to which the this keyword can refer inside the new function. | `...argArray` | any[] | A list of arguments to be passed to the new function. | **Returns:** any ___ ### call ▸ **call**(`this`: [Function](mmir_lib.requirejs.md#function), `thisArg`: any, ...`argArray`: any[]): any *Inherited from [RequireJs](mmir_lib.requirejs.md).[call](mmir_lib.requirejs.md#call)* Calls a method of an object, substituting another object for the current object. #### Parameters: Name | Type | Description | ------ | ------ | ------ | `this` | [Function](mmir_lib.requirejs.md#function) | - | `thisArg` | any | The object to be used as the current object. | `...argArray` | any[] | A list of arguments to be passed to the method. | **Returns:** any ___ ### toString ▸ **toString**(): string *Inherited from [RequireJs](mmir_lib.requirejs.md).[toString](mmir_lib.requirejs.md#tostring)* Returns a string representation of a function. **Returns:** string