From f98bb084bbbbd4f2010cc67e0140f0cd13f5c548 Mon Sep 17 00:00:00 2001 From: cjavilla-stripe <51129155+cjavilla-stripe@users.noreply.github.com> Date: Mon, 2 Mar 2020 10:55:45 -0800 Subject: [PATCH] Update type for StripeError to extend Error (#824) This matches the implemented type fixes #823 --- types/lib.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lib.d.ts b/types/lib.d.ts index 0f2010bfe2..c2608f339c 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -203,7 +203,7 @@ declare module 'stripe' { | 'authentication_error' | 'invalid_grant'; - class StripeError { + class StripeError extends Error { static populate(type: RawErrorType): StripeError; /**