Does `SuperTokens` expose their error types in Typ...
# support-questions
i
Does
SuperTokens
expose their error types in TypeScript? It'd be super helpful not to have to reproduce each of the potential types
r
Hey!
Which error types are you talking about? The ones from the session recipe?
i
Yeah. Like
Copy code
typescript
{
  formFields: [/* ... */],
  status: "",
}
r
Iโ€™m not sure what you are trying to ask for ๐Ÿ˜…
i
Sorry ๐Ÿ˜…
So like, if something goes wrong while trying to do a login, SuperTokens returns an error object with a shape similar to the one I just sent
I was wondering if SuperTokens exports a TS type that represents the shape of that object.
r
There arenโ€™t any types of that. However, there are functions (in the api interface type) which returns those types.
i
Ah, okay. Gotcha. Thanks!
3 Views