JSONApiResponse Class — typescript-sdk Architecture
Architecture documentation for the JSONApiResponse class in runtime.ts from the typescript-sdk codebase.
Entity Profile
Relationship Graph
Source Code
src/runtime.ts lines 396–402
export class JSONApiResponse<T> {
constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
async value(): Promise<T> {
return this.transformer(await this.raw.json());
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free