Skip to content

Cross file definition not connected #409

Description

@jrmuizel

Given the following files:

Sqlite.sys.mjs

export function OpenedConnection() {

}

OpenedConnection.prototype = {
  /**
   * The integer schema version of the database.
   *
   * This is 0 if not schema version has been set.
   *
   * @return String
   */
  getSchemaVersion() {
    return "false"
  },
}

db.sys.mjs

/**
 * @import {OpenedConnection} from "./Sqlite.sys.mjs"
 */


/**
 * @param {OpenedConnection} db
 * @return {String}
 */
export function foo(db) {
    return db.getSchemaVersion();
}

getSchemaVersion() in db.sys.mjs should have a definition in Sqlite.sys.mjs but it ends up with a local defintion

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions