@haelp/teto
Version:
A typescript-based controllable TETR.IO client.
1 lines • 1.38 kB
Source Map (JSON)
{"version":3,"sources":["../../../src/classes/ribbon/types.ts"],"sourcesContent":["import { type Codec, type LoggingLevel } from \".\";\nimport type { Game } from \"../../types\";\n\nexport namespace RibbonEvents {\n export type Raw<T> = {\n [P in keyof T]: T[P] extends void\n ? { command: P }\n : { command: P; data: T[P] };\n }[keyof T];\n\n export interface Send {}\n}\n\nexport interface RibbonParams {\n token: string;\n userAgent: string;\n handling: Game.Handling;\n}\n\nexport interface RibbonOptions {\n /**\n * The type of websocket encoder to use. `json`, `candor`, or `teto` is recommended.\n * `json` only works if the JSON protocol is enabled on your account. You must request it to be enabled before use or your account will be banned when Triangle tries to connect.\n * @default \"teto\"\n */\n codec: Codec;\n /**\n * The target level of Ribbon terminal log output.\n * `none` = no logs\n * `error` = only errors\n * `all` = all logs\n */\n logging: LoggingLevel;\n /**\n * Whether or not connect to a spool (when off, the client will connect directly to tetr.io).\n * It is highly recommended to leave this on.\n * @default true\n */\n spooling: boolean;\n /**\n * @deprecated - use `logging`\n * Enables logging\n * @default false\n */\n verbose: boolean;\n}\n"],"names":[],"mappings":"AAmBA,WA0BC"}