8000 🚀 Feature: Function init via CLI with Typescript · Issue #5832 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
🚀 Feature: Function init via CLI with Typescript #5832
Open
@mbos2

Description

@mbos2

🔖 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0