Skip to content

Instantly share code, notes, and snippets.

@milehighideas
milehighideas / generate-data-layer-api.ts
Created October 3, 2025 02:55
Convex Data Layer API Wrapper
/**
* Auto-generate data-layer API wrapper files from Convex backend functions
*
* This version reads the actual TypeScript files to extract exported function names
* and creates semantic wrappers with proper function references.
*/
import fs from 'fs';
import path from 'path';
import ts from 'typescript';