opengb icon indicating copy to clipboard operation
opengb copied to clipboard

TypeScript Codegen

Open NathanFlurry opened this issue 9 months ago • 1 comments

Resulting API should look very similar to our ctx, like:

import Backend from "path/to/backend";
let backend = new Backend({ endpoint: "https://abc.opengb.rivet.gg" });  // endpoint is required
await backend.modules.users.create({
  // Request body
});

Should use vanilla fetch API under the hood with a custom error type

NathanFlurry avatar May 30 '24 01:05 NathanFlurry