
Is it possilbe to have ts? filename in node js template function

huh?

I mean typescript file type?

like I want to convert this all js into typescript

I am using node js runtime cloud function

To run function using TypeScript, you have to select node runtime

Also you have to set the following npm install && npm build
as build command

entry point -> dist/main.js
build command -> npm install && npm build


Or you can use bun, which support typescript out of the box. At the moment, only if you're self hosting your appwrite instance, cloud haven't bun available yet

I tried bun but so hassle in windows platform

but for cloud function you won't have problem 🤔 You can have linux subsystem in windows 10 and 11, if you want run bun for developing

[SOLVED] creating a cloud function using node js support typescript?
Recommended threads
- cli 5.0.5 command for pull and push of d...
Hi i am using selfhosted appwrite 1.5.10, for migration (duplicate project) purpose i am using cli 5.0.5, but i am unable to find commands for pull and push, wh...
- 404 for self-host
docker-compose.yml: x-logging: &x-logging logging: driver: 'json-file' options: max-file: '5' max-size: '10m' services: traefik: ima...
- Realtime stuck on pending
I'm hosting appwrite on a server where there's already nginx running and you can see how it's config looks for appwrite on attachted screenshot. I'm not getting...
