UNPKG

@haelp/teto

Version:

A typescript-based controllable TETR.IO client.

24 lines (23 loc) 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "channel", { enumerable: true, get: function() { return channel; } }); const channel = (get, post, __)=>{ return { replay: async (id)=>{ const res = await get({ // TODO: type uri: `games/${id}` }); if (res.success === false) throw new Error(res.error.msg); return res.game; } }; }; //# sourceMappingURL=channel.js.map