appwrite / appwrite/sdk-for-node
🐛 Bug Report: TablesDB is exported at runtime but missing from ESM typings (index.d.mts)
- Dominant language
- TypeScript
- Stars
- 256
- Forks
- 45
- Avg merge
- 11h 59m
- Merged PRs (30d)
- 2
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?
- [x] I checked and didn't find similar issue
### 🏢 Have you read the Code of Conduct?
- [x] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)
Contributor guide
Assessment
This issue has not been assessed yet.