Skip to main content

# SelectStateFieldFunction()<TState, Selected>

    type SelectStateFieldFunction<TState, Selected> = (fieldName: string | string[], defaultValue?: Selected | Selected[]) => (state: TState) => Selected;

## Type Parameters​

### TState​

`TState` = `unknown`

### Selected​

`Selected` = `unknown`

## Parameters​

### fieldName​

`string` | `string`[]

### defaultValue?​

`Selected` | `Selected`[]

## Returns​

    (state: TState): Selected;

### Parameters​

#### state​

`TState`

### Returns​

`Selected`