Skip to content

🐛 Bug Report: Node SDK typescript typing mismatch #726

Closed
@karima-xyz

Description

@karima-xyz

👟 Reproduction steps

Assume using pnpm package manager:

  1. pnpm init
  2. pnpm add -D typescript @types/node
  3. pnpm add node-appwrite
  4. pnpm tsc --init
  5. Now, create a new file index.ts with this content:
import { Role } from 'node-appwrite'

Role.label('hello world')
  1. 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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions