Error thrown when a request exceeds the configured timeout.
try { await client.todos.list({ timeout: 5000 });} catch (err) { if (err instanceof TimeoutError) { console.log('Request timed out after', err.timeout, 'ms'); }} Copy
try { await client.todos.list({ timeout: 5000 });} catch (err) { if (err instanceof TimeoutError) { console.log('Request timed out after', err.timeout, 'ms'); }}
The timeout duration in milliseconds that was exceeded.
Optional
Readonly
Error thrown when a request exceeds the configured timeout.
Example