You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting - we can easily flag default params as optional (which technically they are), but what if the first argument has a default value.? In this case you would have to pass in null or undefined to the first argument.
Hello,
I think I found a bug in the plugin.
Here's the source code for a function called "spawnCustomGridEntity":
https://github.com/IsaacScript/isaacscript/blob/4d4cfd0/packages/isaacscript-common/src/classes/features/callbackLogic/CustomGridEntities.ts#L229-L237
We can see that it has, in order:
TypeDoc makes the output of the function look like this:
https://isaacscript.github.io/isaacscript-common/features/CustomGridEntities#parameters
We can see that the final two arguments do not have the question mark like the other optional arguments do, which seems to be a bug.
The text was updated successfully, but these errors were encountered: