CustomFetchResponse
type CustomFetchResponse = {
headers: Record<string, string>;
ok: boolean;
status: number;
statusText: string;
json: Promise<unknown>;
text: Promise<string>;
};
Custom fetch response interface for cross-platform HTTP clients. This minimal interface allows custom HTTP implementations (e.g., Obsidian's requestUrl, Electron's net module, React Native's networking) to work with the SDK.
Properties
headers
headers: Record<string, string>;
ok
ok: boolean;
status
status: number;
statusText
statusText: string;
Methods
json()
json(): Promise<unknown>;
Returns
Promise<unknown>
text()
text(): Promise<string>;
Returns
Promise<string>