Skip to content
New issue

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

What are your thoughts on using TypeScript instead of JavaScript? #4

Open
tillydray opened this issue Jan 4, 2025 · 1 comment
Open

Comments

@tillydray
Copy link
Contributor

I am really excited about this project and want to help contribute. I personally prefer TS over JS but what do you think? For example, comparing uploadImage

JS

  async uploadImage(buffer, type, timestamp) {

TS

export enum Type {
  Webcam = "Webcam",
  NotWebCam = "NotWebCam",
}

export async function uploadImage(
  buffer: string,
  type: Type,
  timestamp: number,
): Promise<void> {
  // Implementation logic goes here
}

The TypeScript can be more informative, particularly Type.

@janwilmake
Copy link
Owner

I prefer TS too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants