/**
* @callback UpdateFunction
* @param {number} dt - The time since the last update.
* @ignore
*/
/**
* @param {UpdateFunction} a
*/
function identity(a) {
return a;
}
identity(() => undefined);
Output / test:
Some time ago I rewrote validateTypedef to prevent stack overflows through circularity, but now it's a bit too restrictive... I have to allow "Function" type typedefs.
Example:
Output / test:
Some time ago I rewrote
validateTypedef
to prevent stack overflows through circularity, but now it's a bit too restrictive... I have to allow"Function"
type typedefs.