@1upmonster/types
v0.1.2
Published
Shared TypeScript type definitions for the 1upmonster platform. Consumed internally by `@1upmonster/sdk`, `@1upmonster/versus`, and `@1upmonster/cli` — you generally don't need to install this directly.
Readme
@1upmonster/types
Shared TypeScript type definitions for the 1upmonster platform. Consumed internally by @1upmonster/sdk, @1upmonster/versus, and @1upmonster/cli — you generally don't need to install this directly.
Install
npm install @1upmonster/typesContents
Tenant & Game
import type { Tenant, Game, ApiKey, CreatedApiKey } from "@1upmonster/types";Versus (Matchmaking)
import type {
VersusConfig, // full game configuration
Match, // active match record
QueueEntry, // player in queue
MatchTeam, // team in a match
EloSourceConfig, // on-chain ELO account config
GameProcessorConfig,// optional authoritative server config
ClientMessage, // WebSocket messages sent by client
ServerMessage, // WebSocket messages sent by server
MatchFoundPayload, // match_found event data
MatchReadyPayload, // match_ready event data
} from "@1upmonster/types";