parseAPIResponse<T>(raw: unknown): APIResponse<T>
Returns raw as an API envelope. Only the success field is checked, so
the payload's type is the caller's word.
parseAPIResponse<T>(raw: unknown): APIResponse<T>
Returns raw as an API envelope. Only the success field is checked, so
the payload's type is the caller's word.
import { parseAPIResponse } from "src/utils/shared/api.ts";