# StoryAction

Source: /tuil/docs/reference/packages/story/api/story-action
Locale: en

interface exported by @mwillbanks/tuil-story.



{/* Generated by tooling/docs/generate-reference.ts. */}

## interface [#interface]

Public interface exported by `@mwillbanks/tuil-story`.

```ts
export interface StoryAction {
  readonly type: "render" | "args" | "controls" | "input" | "resize";
  readonly timestamp: number;
  readonly detail?: Readonly<Record<string, unknown>>;
}
```

## Members [#members]

| Member      | Type                                                      | Required | Description                                                                                    | Related types |
| ----------- | --------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------- | ------------- |
| `type`      | `"render" \| "args" \| "controls" \| "input" \| "resize"` | Yes      | The `type` member uses the `"render" \| "args" \| "controls" \| "input" \| "resize"` contract. | —             |
| `timestamp` | `number`                                                  | Yes      | The `timestamp` member uses the `number` contract.                                             | —             |
| `detail`    | `Readonly<Record<string, unknown>> \| undefined`          | No       | The `detail` member uses the `Readonly<Record<string, unknown>> \| undefined` contract.        | —             |

## Parameters [#parameters]

This declaration has no public members.

## Returns [#returns]

This declaration does not return a value.

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

No package-local related types.

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/story/src/index.tsx)

## Package [#package]

[@mwillbanks/tuil-story](/tuil/docs/reference/packages/story)
