We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assume using pnpm package manager:
pnpm init
pnpm add -D typescript @types/node
pnpm add node-appwrite
pnpm tsc --init
index.ts
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'.
index.ts:3:6 - error TS2339: Property 'label' does not exist on type 'typeof Role'.
Role.label is defined (I look at the generated .js file, it is there) so it should be on the index.d.ts file
Role.label is not on the index.d.ts file
Version 0.11.x
Linux
No response
The text was updated successfully, but these errors were encountered:
@YandiBanyuKarimaWaly thanks for raising this issue! 🙏🏼 It looks like it's missing from our template:
sdk-generator/templates/node/index.d.ts.twig
Lines 204 to 211 in 2069238
Sorry, something went wrong.
stnguyen90
Successfully merging a pull request may close this issue.
👟 Reproduction steps
Assume using pnpm package manager:
pnpm init
pnpm add -D typescript @types/node
pnpm add node-appwrite
pnpm tsc --init
index.ts
with this content: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?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: