refactor(api): migrate config-api to ApiResponse pattern
This commit is contained in:
@@ -52,4 +52,4 @@ export function throwIfError<T>(result: ApiResponse<T>): T {
|
||||
return result.data
|
||||
}
|
||||
throw new Error(result.error)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user