export type KnownProblem = { title: string, subtitle: string, errors: Array<[string, string]>, traceId: string, } export function is_known_problem(response: any): boolean { return (response.data.hasOwn("title") && response.data.hasOwn("subtitle") && response.data.hasOwn("errors") && response.data.hasOwn("traceId")); }