#Why can’t i check if status property does exist ?

4 messages · Page 1 of 1 (latest)

rigid rootBOT
#
le.michel#0

Preview:ts // Welcome to the TypeScript Playground, this is a website // which gives you a chance to write, share and learn TypeScript. // You could think of it in three ways: // - A location to learn TypeScript where nothing can break // - A place to experiment with TypeScript syntax, and share the URLs with others ...

desert wolf
#

you're creating a union by indexing with APIMethods and you can only access properties if it's valid for each member

#

you can check with "status" in response

zenith hollow
#

thank you it works perfectly !