Open
Description
🔖 Feature description
As a Typescript user, it would be nice to init a function with a typescript support so we can provide type safety for our appwrite functions.
When we do appwrite init function
, add an option to initialize with Typescript.
🎤 Pitch
For all TS users, I guess a typescript support for introducing types and making cloud function error-free regarding types is pretty much desired.
Support for both require and import should be there.
TS files could live in dev
folder, for example.
Npm scripts would be
"scripts": {
"build": "tsc --build",
"clean": "tsc --build --clean"
},
devDependencies in package.json
"devDependencies": {
"@types/node": "^20.4.2",
"typescript": "^5.1.6"
},
Some basic tsconfig.json example
{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"target": "ESNext",
"outDir": "src"
},
"include": [
"dev/**/*"
]
}
👀 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