To let user of this library omit an argument in a callback function, we do not need to make the argument type optional.
On the other hand, making an argument type optional, will force the user handle the case where eventType or filePath is undefined (which will not happen.)
To let user of this library omit an argument in a callback function, we do not need to make the argument type optional.
On the other hand, making an argument type optional, will force the user handle the case where
eventType
orfilePath
isundefined
(which will not happen.)