Skip to content

LinearClientOptions

Defined in: index.ts:19

Options of createLinearClient.

optional baseUrl?: string

Defined in: index.ts:23

Overrides the API root, for tests. Defaults to https://api.linear.app.


optional errors?: ErrorSink

Defined in: index.ts:29

Reports transport failures and unexpected 5xx. Defaults to a no-op.


optional fetch?: (input, init?) => Promise<Response>

Defined in: index.ts:25

Overrides fetch, for tests.

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: index.ts:27

Structured logger for request diagnostics. Defaults to a no-op.


token: string

Defined in: index.ts:21

A personal API key (lin_api_...) or an OAuth access token (lin_oauth_...).