lawsynth/packages/api-client/examples/generated.example.ts
2026-08-16 22:04:11 +03:00

6 lines
248 B
TypeScript

import { LawSynthClient } from "../src/index.js";
const baseUrl = process.env.LAWSYNTH_API_URL;
if (!baseUrl) throw new Error("Set LAWSYNTH_API_URL to query the deployed API version");
console.log(await new LawSynthClient({ baseUrl }).version());