(path: TPath)
| 44 | export type PathWithoutPrefix<TPath> = TPath extends `/v1/${infer U}` ? U : never; |
| 45 | |
| 46 | export function api<TPath extends PathWithoutPrefix<Path>>(path: TPath) { |
| 47 | return `${prefix}${path}` as const; |
| 48 | } |
| 49 | |
| 50 | export function methodCall<TMethodName extends string>(methodName: TMethodName) { |
| 51 | return api(`method.call/${methodName}`); |
no outgoing calls
no test coverage detected