import { api as convexApi } from "@stilltime/backend/api";
...
// Type utility to simplify deep types
type Simplify<T> = { [K in keyof T]: T[K] } & {};
// Create a simplified version of the API to avoid deep type instantiation
// @ts-ignore TS2589: Type instantiation is excessively deep and possibly infinite
const api = convexApi as Simplify<typeof convexApi>;
import { api as convexApi } from "@stilltime/backend/api";
...
// Type utility to simplify deep types
type Simplify<T> = { [K in keyof T]: T[K] } & {};
// Create a simplified version of the API to avoid deep type instantiation
// @ts-ignore TS2589: Type instantiation is excessively deep and possibly infinite
const api = convexApi as Simplify<typeof convexApi>;