new Overload(def) → {function}
Allows a method to accept overloaded calls with different parameters controlling
which passed overload function is called.
Parameters:
| Name | Type | Description |
|---|---|---|
def |
Object |
- Source:
Returns:
- Type
- function
Methods
generateSignaturePermutations(str) → {Array}
Generates an array of all the different definition signatures that can be
created from the passed string with a catch-all wildcard *. E.g. it will
convert the signature: string,*,string to all potentials:
string,string,string
string,number,string
string,object,string,
string,function,string,
string,undefined,string
Parameters:
| Name | Type | Description |
|---|---|---|
str |
String | Signature string with a wildcard in it. |
- Source:
Returns:
An array of signature strings that are generated.
- Type
- Array