IntroductionChangelogsTypeScriptApril 14, 20250.51.0 (feat): Add rawResponse property to JavaScript errors. 1try {2 const fooBar = await client.foo.bar("id", options);3} catch (e) {4 if (error instanceof FooError) {5 console.log(error.rawResponse);6 } else {7 // ...8 }9}
April 14, 20250.51.0 (feat): Add rawResponse property to JavaScript errors. 1try {2 const fooBar = await client.foo.bar("id", options);3} catch (e) {4 if (error instanceof FooError) {5 console.log(error.rawResponse);6 } else {7 // ...8 }9}