Closed
Description
👟 Reproduction steps
Assume using pnpm package manager:
pnpm init
pnpm add -D typescript @types/node
pnpm add node-appwrite
pnpm tsc --init
- Now, create a new file
index.ts
with this content:
import { Role } from 'node-appwrite'
Role.label('hello world')
pnpm tsc index.ts
Then the error shows up:
index.ts:3:6 - error TS2339: Property 'label' does not exist on type 'typeof Role'.
👍 Expected behavior
Role.label is defined (I look at the generated .js file, it is there) so it should be on the index.d.ts file
👎 Actual Behavior
Role.label is not on the index.d.ts file
🎲 Appwrite version
Version 0.11.x
💻 Operating system
Linux
🧱 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