document ability to specify an array of names

This commit is contained in:
Lu[ke] Wilson
2025-08-02 10:17:48 +01:00
parent 39c45bc2b2
commit ad113b3888
+1 -1
View File
@@ -1569,7 +1569,7 @@ export const func = curry((a, b) => reify(b).func(a));
/**
* Registers a new pattern method. The method is added to the Pattern class + the standalone function is returned from register.
*
* @param {string} name name of the function
* @param {string | string[]} name name of the function, or an array of names to be used as synonyms
* @param {function} func function with 1 or more params, where last is the current pattern
* @noAutocomplete
*