Skip to content

SchemaSourceOptions

type SchemaSourceOptions = {
fetch?: typeof globalThis.fetch;
headers?: Record<string, string>;
prefix?: string;
url: string;
};

Defined in: client/src/generate/generate.ts:6

Options shared by fetchClientManifest and generateClientTypes.

optional fetch?: typeof globalThis.fetch;

Defined in: client/src/generate/generate.ts:12

fetch implementation to use. Defaults to the global fetch.


optional headers?: Record<string, string>;

Defined in: client/src/generate/generate.ts:14

Headers to send with the manifest request (e.g. auth).


optional prefix?: string;

Defined in: client/src/generate/generate.ts:10

Route prefix the AI routes are mounted under. Defaults to /api.


url: string;

Defined in: client/src/generate/generate.ts:8

Base URL of the server, e.g. http://localhost:3800. No trailing slash.