LinearClientOptions
Defined in: index.ts:19
Options of createLinearClient.
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: index.ts:23
Overrides the API root, for tests. Defaults to https://api.linear.app.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: index.ts:29
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: index.ts:25
Overrides fetch, for tests.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
logger?
Section titled “logger?”
optionallogger?: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_...).