---
title: RunHookTimeout
description: "A timeout for the run, resume, suspend, or terminate hook: 1..=60 seconds."
---

A timeout for the `run`, `resume`, `suspend`, or `terminate` hook: 1..=60 seconds.

A distinct class from \[`BuildHookTimeout`] and deliberately not interchangeable with it.

## Constructors

### Constructor

```ts
new RunHookTimeout(seconds: number): RunHookTimeout;
```

A run-family timeout, or a refusal naming **both** ceilings.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `seconds` | `number` |

#### Returns

`RunHookTimeout`

## Accessors

### maxSecs

#### Get Signature

```ts
get maxSecs(): 60;
```

The service ceiling for this family: 60.

##### Returns

`60`

***

### seconds

#### Get Signature

```ts
get seconds(): number;
```

##### Returns

`number`

## Methods

### toString()

```ts
toString(): string;
```

#### Returns

`string`

## Provenance

This page is generated from `bindings/microvms-js/index.d.ts` by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run dts`. `mise run dts:check` fails when the committed file no longer matches the source.