@chat-game/api
v0.1.48
Published
Chat Game API: all communication with Server in one place
Downloads
14
Readme
API
Chat Game API: all communication with Server in one place
How to use
npm i @chat-game/api
Import from lib. Init it as a new class, provide Bearer Token. Use available typed methods.
import { ChatGameAPI } from '@chat-game/api'
const api = new ChatGameAPI('<your token>')
const test = await api.method()
if (test instanceof Error) {
// Some error
}
Changelog
See CHANGELOG.md