Closed gtrabanco closed 2 weeks ago
I wanted to generate a file with extension .d.ts instead of .ts so I changed the command to:
.d.ts
.ts
npx fetch-appwrite-types outDir ./types outFileName appwrite.d hardTypes
And it generated two files:
ls -1 types appwrite.d.ts appwrite.ts
appwrite.ts
Contains all enum types and Email, URL types.
Email
URL
appwrite.d.ts
Contains all collections types. The types miss all enums in appwrite.ts file and, of course, the Email and URL types.
Looks like the issue is here:
CreateHardFieldsType has hardcoded filename.
There should be an option to create camelCase or upper names for enums.
Hi @gtrabanco
You're right, will give a look at it this week!
Thanks for reporting this
Hi @gtrabanco,
Should be fixed in 1.8.3!
I wanted to generate a file with extension
.d.ts
instead of.ts
so I changed the command to:And it generated two files:
appwrite.ts
Contains all enum types and
Email
,URL
types.appwrite.d.ts
Contains all collections types. The types miss all enums in
appwrite.ts
file and, of course, the Email and URL types.Other
Looks like the issue is here:
CreateHardFieldsType has hardcoded filename.
Non related
There should be an option to create camelCase or upper names for enums.