Closed linonetwo closed 1 year ago
This may work:
declare module 'sqlite-vss' {
export interface Database {
// after https://deno.land/x/sqlite3@0.8.0/mod.ts?s=Database#method_loadExtension_0
loadExtension(file: string, entrypoint?: string | undefined): void;
}
/**
* Loads the sqlite-vss extension on the given sqlite3 database.
*/
export function loadVector(database: Database): void;
/**
* Loads the sqlite-vss extension on the given sqlite3 database.
*/
export function loadVss(database: Database): void;
/**
* Loads the sqlite-vss extension on the given sqlite3 database.
*/
export function load(database: Database): void;
}
Hey @linonetwo , v0.1.1-alpha.9
just published with the .d.ts
types you added - can you give it a try and lmk if it works as expected?
Yes it works, thanks for rapid update.
I was on Windows PC last few days, back on Mac today.
Sorry, but the .d.ts file isn't publish to npm, maybe we need to change
to add it. But should I also add index.js too?
@linonetwo v0.1.1-alpha.17
now includes the .d.ts
file in files
, can you give it a shot?
Thanks, this works
Sorry but I finally decided to copy code and managed in my codebase, because the path from loadablePathResolver
maybe incorrect after electron app packaged. (It will be .webpack/main/index.js
in other folder instead of in node_modules folder.)
I'm trying to add this to https://github.com/tiddly-gittly/TidGi-Desktop , to provide note search. Thank you for your library!
Seems this is written in typescript, but not bundle .d.ts file within npm package? Can you include it?
Thanks in advance.