You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Referring to this line, shouldn't the defined type be Errors to conform with the interface found here? Right now, Error refers to the standard JS error class instead.
Also, I am not sure if importing ClientResponse directly in my code is the right thing to do. Shouldn't there be a named export inside FusionAuthClient.ts that corresponds with the schema of ClientResponse?
The reason I need this is for defining error handling inside catch blocks for errors originating from the FusionAuth library.
The other alternative is to handle catch errors with the any type but I don't like that and I don't want that to be a standard thing in our app.
Sorry if I am completely wrong with my approach as I am just getting acquainted with TypeScript. In which case, would you let me know how I can define FusionAuth errors correctly in my catch blocks?
The text was updated successfully, but these errors were encountered:
Referring to this line, shouldn't the defined type be
Errors
to conform with the interface found here? Right now,Error
refers to the standard JS error class instead.Also, I am not sure if importing
ClientResponse
directly in my code is the right thing to do. Shouldn't there be a named export insideFusionAuthClient.ts
that corresponds with the schema ofClientResponse
?The reason I need this is for defining error handling inside
catch
blocks for errors originating from the FusionAuth library.The other alternative is to handle
catch
errors with theany
type but I don't like that and I don't want that to be a standard thing in our app.Sorry if I am completely wrong with my approach as I am just getting acquainted with TypeScript. In which case, would you let me know how I can define FusionAuth errors correctly in my
catch
blocks?The text was updated successfully, but these errors were encountered: