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.
Properties
Section titled “Properties”fetch?
Section titled “fetch?”optional fetch?: typeof globalThis.fetch;Defined in: client/src/generate/generate.ts:12
fetch implementation to use. Defaults to the global fetch.
headers?
Section titled “headers?”optional headers?: Record<string, string>;Defined in: client/src/generate/generate.ts:14
Headers to send with the manifest request (e.g. auth).
prefix?
Section titled “prefix?”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.