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

support for typescript? #2

Open
Cody2333 opened this issue Aug 18, 2023 · 0 comments
Open

support for typescript? #2

Cody2333 opened this issue Aug 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Cody2333
Copy link

It would be better to get type-safe rpc like functions for client to use.
I need to manually add type defintions currently. Is there any plan offering a better support for typescript?

declare module "https://au215ybu51.us.aircode.run/index" {
  export function add(a: number, b: number): Promise<number>;
}
@akira-cn akira-cn added the enhancement New feature or request label Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants