@cthunline/games
TypeScript icon, indicating that this package has built-in type declarations

3.4.3 • Public • Published

Cthunline Games

TS types and TypeBox schemas for Cthunline games

Using this package in other projects

Install

npm i @cthunline/games

Usage

import { callOfCthulhu, CoCCharacter } from '@cthunline/games';
import { Value } from '@sinclair/typebox/value';

// Check character data validity against schema
Value.Check(callOfCthulhu.schema, data);

// Use the default character object to initialise a new character
const newCharacter = { ...callOfCthulhu.default };

// Use TS types to type character objects
const character: CoCCharacter = {
    // ...
};

Readme

Keywords

none

Package Sidebar

Install

npm i @cthunline/games

Weekly Downloads

141

Version

3.4.3

License

AGPL-3.0-or-later

Unpacked Size

436 kB

Total Files

71

Last publish

Collaborators

  • pitininja