JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q43169F
  • License ISC

Types de données renvoyés par aaron

Package Exports

  • aaron-types
  • aaron-types/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aaron-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Aaron Types

License npm version

Définitions de types pour les données renvoyées par l'API Aaron. Ce paquet fournit des types TypeScript pour travailler avec les structures de données renvoyées par l'API Aaron. Il en existe pour toutes les structures renvoyées par l'api. (on l'utilise pour le bot)

Installation

You can install the Aaron Types package using npm:

npm install aaron-types

Usage

// Import the required types
import { Country, Player, ServerColor } from 'aaron-types';

// Use the types in your TypeScript code
const country: Country = {
  name: 'Example Country',
  caseName: 'example_case',
  serverColor: '#FF0000',
  power: 1000,
  // ... other properties
};

const player: Player = {
  pseudo: 'example_player',
  description: 'A player in the game',
  colorData: [{ color: '#FF0000' }],
  lang: 'en',
  prime: true,
  // ... other properties
};

const color: ServerColor = {
  color: '#FF0000',
  bedrock: false,
  updatedDynmap: true,
  // ... other properties
};

Documentation

Plus d'informations sur les shémas dans la documentation documentation.