@scaleway/sdk-client
Version:
Scaleway SDK Client
11 lines (10 loc) • 348 B
TypeScript
import type { JSONObject } from '../../helpers/json.js';
import type { ScalewayError } from './scw-error.js';
/**
* Interface with static method that initialize {@link ScalewayError} from JSON.
*
* @internal
*/
export interface ScalewayErrorFromJSONInitializer {
fromJSON(status: number, obj: Readonly<JSONObject>): ScalewayError | null;
}