akira-cn / http-modular

A universal library for converting server-side functions into ES Modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support for typescript?

Cody2333 opened this issue · comments

commented

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>;
}