Skip to content

Commit

Permalink
fix: expose proxy type
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Torres committed Sep 3, 2023
1 parent c819066 commit 9ddc1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/eventually/src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const httpError = (error: unknown): JsonResponse<never> => {
);
};

type ProxyType = {
export type Proxy = {
command: <
S extends State,
C extends Messages,
Expand Down Expand Up @@ -130,7 +130,7 @@ type ProxyType = {
* @param apiUrl api host url
* @param options fetch options
*/
export const HttpProxy = (apiUrl: string, options?: RequestInit): ProxyType => {
export const HttpProxy = (apiUrl: string, options?: RequestInit): Proxy => {
return {
command: async function (factory, stream, name, data, expectedVersion) {
const url = `${apiUrl}/${decamelize(factory.name)}/${stream}/${decamelize(
Expand Down

0 comments on commit 9ddc1af

Please sign in to comment.