LogoPixi’VN
indexType aliases

Type Alias: RoomIdType

> RoomIdType = [keyof NqtrRoomIds] extends [never] ? string : keyof NqtrRoomIds

Defined in: src/registries/NqtrIds.ts:99

The type used wherever a room ID is expected.

  • Default — resolves to string.
  • Augmented — resolves to the union of known room IDs once NqtrRoomIds has been extended.

Example

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

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

On this page