FreedomBen / libmalan

Simple TypeScript utility methods for accessing the Malan authentication service
MIT License
0 stars 1 forks source link

Add ErrorResponse type for convenience #22

Closed FreedomBen closed 2 years ago

FreedomBen commented 2 years ago

If an API endpoint returns an error, this ErrorResponse describes what it will look like

FreedomBen commented 2 years ago

ErrorResponse isn't actually used yet but I figured I'd commit what I had so it doesn't get lost or merge conflicted into death

FreedomBen commented 2 years ago

It looks like there's already a basic type defined in errors.ts, so this would make more sense being merged in there. Also the object is a little different now. Closing and will reopen as a different PR.