Giter Site home page Giter Site logo

Comments (9)

linonetwo avatar linonetwo commented on August 27, 2024

This may work:

declare module 'sqlite-vss' {
  export interface Database {
    // after https://deno.land/x/[email protected]/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;
}

from sqlite-vss.

asg017 avatar asg017 commented on August 27, 2024

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?

from sqlite-vss.

linonetwo avatar linonetwo commented on August 27, 2024

Yes it works, thanks for rapid update.

from sqlite-vss.

linonetwo avatar linonetwo commented on August 27, 2024

I was on Windows PC last few days, back on Mac today.

from sqlite-vss.

linonetwo avatar linonetwo commented on August 27, 2024

Sorry, but the .d.ts file isn't publish to npm, maybe we need to change

"files": [
"*.dylib",
"*.so",
"*.dll"
],

to add it. But should I also add index.js too?

from sqlite-vss.

asg017 avatar asg017 commented on August 27, 2024

@linonetwo v0.1.1-alpha.17 now includes the .d.ts file in files, can you give it a shot?

from sqlite-vss.

linonetwo avatar linonetwo commented on August 27, 2024

Thanks, this works
截屏2023-06-07 11 27 10

from sqlite-vss.

linonetwo avatar linonetwo commented on August 27, 2024

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.)

from sqlite-vss.

linonetwo avatar linonetwo commented on August 27, 2024

I'm trying to add this to https://github.com/tiddly-gittly/TidGi-Desktop , to provide note search. Thank you for your library!

from sqlite-vss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.