Skip to content

Commit

Permalink
Update type for StripeError to extend Error (#824)
Browse files Browse the repository at this point in the history
This matches the implemented type

fixes #823
  • Loading branch information
cjavilla-stripe authored Mar 2, 2020
1 parent 33550e1 commit f98bb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ declare module 'stripe' {
| 'authentication_error'
| 'invalid_grant';

class StripeError {
class StripeError extends Error {
static populate(type: RawErrorType): StripeError;

/**
Expand Down

0 comments on commit f98bb08

Please sign in to comment.