# Interface: NarrationChoicesInterface (/pixi-vn/index/interfaces/NarrationChoicesInterface)



Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationChoicesInterface.ts#L5)

## Accessors [#accessors]

### list [#list]

#### Get Signature [#get-signature]

\> **get** **list**(): [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface)\[] | `undefined`

Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationChoicesInterface.ts#L9)

The choices to be shown in the game.

##### Returns [#returns]

[`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface)\[] | `undefined`

#### Set Signature [#set-signature]

\> **set** **list**(`data`): `void`

Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationChoicesInterface.ts#L14)

The choices to be shown in the game.

##### Throws [#throws]

when a choice contains functions or class instances that cannot be serialized to JSON.

##### Parameters [#parameters]

###### data [#data]

[`StoredChoiceInterface`](/pixi-vn/index/type-aliases/StoredChoiceInterface)\[] | `undefined`

##### Returns [#returns-1]

`void`

## Methods [#methods]

### select() [#select]

\> **select**\<`T`>(`item`, `props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)>

Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/narration/interfaces/NarrationChoicesInterface.ts#L36)

Select a choice from the choice menu, and close the choice menu.

#### Type Parameters [#type-parameters]

##### T [#t]

`T` *extends* `object`

#### Parameters [#parameters-1]

##### item [#item]

[`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface)

The choice item selected by the player.

##### props [#props]

[`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`>

The props to pass to the label.

#### Returns [#returns-2]

`Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)>

StepLabelResultType or undefined.

#### Throws [#throws-1]

when the choice type is not `"call"`, `"jump"`, or `"close"`.

#### Example [#example]

```ts
narration.choices.select(item, {
    navigate: navigate,
    // your props
    ...item.props
})
    .then(() => {
        // your code
    })
    .catch((e) => {
        // your code
    })
```
