# server.Server.typed_global_window_option

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server/settings.rs#L666
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-typed_global_window_option/

```
server.Server.typed_global_window_option(self, name: &str) -> Result<Option<OptionValue>, Error>
```

Read one global window option, decoded according to its declared kind.

Windows inherit from this table. Absence and decoding work as in
[`Self::typed_option`].

# Errors

Returns an error when tmux does not recognize the option name.

## Example

```rust
use libtmux::OptionValue;

let base = server.typed_global_window_option("pane-base-index").await?;
assert!(matches!(base, Some(OptionValue::Number(_))));
```
