Skip to content

Commit f3530d3

Browse files
committed
feat(client): export HevyApiClient type for external type annotations
Adds a type export for the Hevy API client, allowing consumers to properly type variables that hold client instances.
1 parent 0005d9b commit f3530d3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/utils/hevyClientKubb.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,9 @@ export function createClient(
184184
},
185185
};
186186
}
187+
188+
/**
189+
* Type representing the Hevy API client returned by createClient.
190+
* Useful for typing variables that hold the client instance.
191+
*/
192+
export type HevyApiClient = ReturnType<typeof createClient>;

0 commit comments

Comments
 (0)