{"library":"phaser3-rex-plugins-types","title":"phaser3-rex-plugins-types","description":"TypeScript type definitions for phaser3-rex-plugins, a comprehensive collection of plugins for Phaser 3. Current stable version 0.2.0, released 2023-09-12. Provides type safety and autocompletion for popular plugins like Webfont loader, Container Lite, Input text, and more. Updated infrequently; supports only a subset of all rex plugins (marked as [x] in README). No built-in tests or CI beyond Travis. Differentiator: fills the gap for TypeScript users of the rexrainbow plugin ecosystem, unlike the JS-only original.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install phaser3-rex-plugins-types"],"cli":null},"imports":["import 'phaser3-rex-plugins-types'","Add \"node_modules/phaser3-rex-plugins-types\" to tsconfig.json include array","// types are available via Phaser.Loader.LoaderPlugin extension. No explicit import needed."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// 1. Install: npm i --save phaser3-rex-plugins-types\n// 2. Add to tsconfig.json:\n/* {\n  \"include\": [\"**/*\", \"node_modules/phaser3-rex-plugins-types\"]\n} */\n// 3. In your game code, types are automatically available:\nimport Phaser from 'phaser';\n\nconst config: Phaser.Types.Core.GameConfig = {\n  type: Phaser.AUTO,\n  width: 800,\n  height: 600,\n  scene: { create },\n};\n\nfunction create(this: Phaser.Scene) {\n  // WebfontLoader: rexWebfont is augmented on this.load\n  this.load.rexWebfont({ key: 'font', custom: 'https://fonts.googleapis.com/css?family=Roboto' });\n  // ContainerLite is available via this.add.rexContainerLite\n  const container = this.add.rexContainerLite(400, 300, 200, 100);\n}\n\nnew Phaser.Game(config);","lang":"typescript","description":"Initializes a basic Phaser 3 game with TypeScript, demonstrating how to use rex plugins types (WebfontLoader and ContainerLite) without explicit imports.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}