doc: fix `filename` type in `watch` result
Providing
filename
argument in the callback is only supported on Linux, macOS, Windows, and AIX. Even on supported platforms,filename
is not always guaranteed to be provided. Therefore, don't assume thatfilename
argument is always provided in the callback, and have some fallback logic if it isnull
.
So I added null
to type to do it more clearly