Core type definitions for ComputerCraft TypeScript events and interactions
This module provides TypeScript type definitions for ComputerCraft's event system,
peripheral interactions, and common data structures. It enables type-safe handling
of ComputerCraft events and peripherals in TypeScript projects.
Example: Basic event handling
import { Events } from'./types';
// Type-safe event handling os.pullEvent<Events["mouse_click"]>("mouse_click").then(([button, x, y]) => { console.log(`Mouse clicked at (${x}, ${y}) with button ${button}`); });
Description
Core type definitions for ComputerCraft TypeScript events and interactions
This module provides TypeScript type definitions for ComputerCraft's event system, peripheral interactions, and common data structures. It enables type-safe handling of ComputerCraft events and peripherals in TypeScript projects.
Example: Basic event handling
Example: Working with peripherals