15 ms·
That's true - the package is auto-generated using [wasmpak](https://github.com/rustwasm/wasm-pack https://github.com/rustwasm/wasm-pack), that's why TypeScript
by aerzen 4y ago
That's true - the package is auto-generated using [wasmpak](https://github.com/rustwasm/wasm-pack https://github.com/rustwasm/wasm-pack), that's why TypeScript definitions are clunky. I did the initial prql-js release and I'm actually not sure about the free() issue you are talking about.
We are currently working on compiling it for both Node.js and the browser target, and would be happy to see some advice if you are familiar with WASM!
- skybrian 4y agoI didn't actually try it out and I'm not all that familiar with WASM. Here is the typescript I see (stripped of boilerplate comments): export function compile(s: string): CompileResult; export class CompileResult { free(): void; readonly error: CompileError | undefined; readonly sql: string | undefined; } What is the purpose of the free() method?