Closed jsejcksn closed 2 years ago
I was under the impression that that was already possible with typescript, but it makes sense that it wouldn’t be 😅
Looks good to me though 😊
Thanks. The reason for that is type-only imports and exports are elided by default (and therefore not available) in the compiled JavaScript.
Will this be released soon (and become available on deno.land/x), or should I just use the latest wasm build commit branch in my imports?
import {SqliteError} from 'https://raw.githubusercontent.com/dyedgreen/deno-sqlite/f3662458ed7415681144b04a828ff6bb0194ee45/mod.ts';
I'm happy to make a point release 😅
Currently, a compiler error is produced when trying to use
SqliteError
as a value:It is useful to provide the export as a value for cases like the following:
This PR exports the class as a value to address this. (It can, of course, still be used as a type.)