UNPKG

@haelp/teto

Version:

A typescript-based controllable TETR.IO client.

15 lines (14 loc) 393 B
// @ts-expect-error post is unused export 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