In many fs functions, mode is optional, which means that the argument that takes its slot becomes the callback.

Adding alternative definitions to account for this.
'mode' can be a number or a string.

I realize this could be considered pedantic, but the typings do not even consistently use one or the other. Previously, certain functions assumed string, others assumed number. This way, you can use either.