# Type Alias: RoomIdType (/nqtr/index/type-aliases/RoomIdType)



\> **RoomIdType** = \[keyof [`NqtrRoomIds`](/nqtr/index/interfaces/NqtrRoomIds)] *extends* \[`never`] ? `string` : keyof [`NqtrRoomIds`](/nqtr/index/interfaces/NqtrRoomIds)

Defined in: [src/registries/NqtrIds.ts:99](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/registries/NqtrIds.ts#L99)

The type used wherever a room ID is expected.

* **Default** — resolves to `string`.
* **Augmented** — resolves to the union of known room IDs once
  [NqtrRoomIds](/nqtr/index/interfaces/NqtrRoomIds) has been extended.

## Example [#example]

```ts
import type { RoomIdType } from "@drincs/nqtr/registries";

function navigateTo(roomId: RoomIdType) { ... }
navigateTo("bedroom"); // ✅ compile error if "bedroom" is not a known room
```
