-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
bugSomething isn't workingSomething isn't working
Description
👟 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?
- I have read the Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working