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

3.5.0 • 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

4

Version

3.5.0

License

AGPL-3.0-or-later

Unpacked Size

341 kB

Total Files

45

Last publish

Collaborators

  • pitininja