fs: adjust typecheck for `type` in `fs.symlink()`
Alternative to: https://github.com/nodejs/node/pull/44641
- Throws
TypeError
instead ofError
- Enables autodetection on Windows if
type === undefined
(as intended in https://github.com/nodejs/node/pull/23724) - Explicitly disallows unknown strings and non-string values