sasjs / adapter

An adapter for bidirectional SAS® <-> Javascript communication
https://adapter.sasjs.io
MIT License
39 stars 3 forks source link

ErrorBody interface made public #801

Closed medjedovicm closed 1 year ago

medjedovicm commented 1 year ago

Issue

Closes #680

Intent

Since the issue was opened a long time ago and quite some stuff changed, I propose that we make this interface public to be available for use in client apps. This change should not introduce any issues since it is just exporting the interface. Ideally details property in that interface should have a better-defined type than any. But for that to be achieved we need to find and change every single place where errors are returned. We can do it in future, bit by bit, when we find such places while fixing/adding features.

Implementation

ErrorBody in the ErrorResponse.ts file exported.