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

Typescript Support? #1

Closed
bayssmekanique opened this issue Jun 13, 2018 · 4 comments · Fixed by #18
Closed

Typescript Support? #1

bayssmekanique opened this issue Jun 13, 2018 · 4 comments · Fixed by #18

Comments

@bayssmekanique
Copy link

I see that Clooney has TS support, but this appears to not play well the TypeScript Linter. Is it even possible to add support for TypeScript given the mutation that occurs?

@koalalorenzo
Copy link

Any update? That would be really nice!

@koriwi
Copy link

koriwi commented Dec 20, 2018

Dito!

@developit
Copy link
Collaborator

This is fixed in 2.0.0! There's an example in the README.

@ahuglajbclajep
Copy link

The README defines greet as follows, but this code is a type error.

export async function greet(subject: string): string {
  return `Hello, ${subject}!`;
}

I think it should be defined as follows.

export async function greet(subject: string): Promise<string> {
  return `Hello, ${subject}!`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants