export type ApiError = { error: string } export type ApiResult = ApiError | T | T[] | ""