Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
castral
· 9mo ago · 0 comments
You can literally do what your generated example does using a type guard. You can also use method overloaded signatures if you dont want to expose your API consumers to union types.
Comments
No comments yet.
Better HN