---
title: WaitForStateOptions
description: How waitForState polls.
---

How `waitForState` polls.

## Properties

### failOn?

```ts
optional failOn?: string[];
```

States that reject with `stateReason` instead of being waited through.

***

### pollInterval?

```ts
optional pollInterval?: number;
```

Seconds between polls. Default 5.

***

### timeout?

```ts
optional timeout?: number;
```

Seconds before giving up. Default 300.

## 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.