CustomPromisifyLegacy
[<Interface>]
type CustomPromisifyLegacy<'TCustom> =
abstract member __promisify__: 'TCustom with get, set
abstract member arguments: obj with get, set
abstract member caller: Function with get, set
abstract member length: float
abstract member name: string
abstract member prototype: obj with get, set
abstract member SymbolHasInstance (value: obj) : bool
abstract member apply (thisArg: obj, ?argArray: obj) : obj
abstract member bind (thisArg: obj, argArray: obj array) : obj
abstract member call (thisArg: obj, argArray: obj array) : obj
abstract member toString () : string| Assembly | Xantham.Fable.Node |
Properties
abstract member name: string
abstract member name: stringReturns the name of the function. Function names are read-only and can not be changed.
Methods
abstract member SymbolHasInstance (value: obj) : bool
abstract member SymbolHasInstance (value: obj) : boolDetermines 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.
abstract member apply (thisArg: obj, ?argArray: obj) : obj
abstract member apply (thisArg: obj, ?argArray: obj) : objCalls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
| Parameter | |
|---|---|
thisArg | The object to be used as the this object. |
argArray | A set of arguments to be passed to the function. |
abstract member bind (thisArg: obj, argArray: obj array) : obj
abstract member bind (thisArg: obj, argArray: obj array) : objFor 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.
| Parameter | |
|---|---|
thisArg | An object to which the this keyword can refer inside the new function. |
argArray | A list of arguments to be passed to the new function. |