Y
Hacker News
new
|
ask
|
show
|
jobs
by
moron4hire
1419 days ago
It's an error, as the plain `string` type doesn't satisfy the union. You'll need to perform type assertions to make the return type down before passing it as a parameter.