Skip to content

πŸ› Bug Report: TablesDB is exported at runtime but missing from ESM typings (index.d.mts)Β #132

Description

@erfanhekmati

πŸ‘Ÿ Reproduction steps

TablesDB is available at runtime from node-appwrite, but it is not exported in the ESM typings entrypoint (index.d.mts), which causes TypeScript import errors.

This leads to a mismatch between the runtime API and the type definitions.

πŸ‘ Expected behavior

TypeScript users should be able to import TablesDB the same way as other services:

import { TablesDB } from "node-appwrite";

Actual behavior

TypeScript reports that TablesDB is not exported:

Module '"node-appwrite"' has no exported member 'TablesDB'.

πŸ‘Ž Actual Behavior

Runtime export exists

In dist/index.js:

Object.defineProperty(exports, 'TablesDB', {
  enumerable: true,
  get: function () { return tablesDb.TablesDB; }
});

Typings export is missing

In dist/index.d.mts, TablesDB is not exported, while other services are:

export { Account } from './services/account.mjs';
export { Databases } from './services/databases.mjs';
export { Storage } from './services/storage.mjs';

// TablesDB missing

🎲 Appwrite version

Version 0.10.x

πŸ’» Operating system

Windows

🧱 Your Environment

No response

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions