Skip to content

Commit

Permalink
Address feedback & add property to type
Browse files Browse the repository at this point in the history
  • Loading branch information
kemmerle committed Dec 5, 2024
1 parent bb7a33e commit 02f193d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export async function fetchFileFromRepository<T = Buffer>(
})
);

const { data } = await fetchRepoFile(repoPath, filePath, ref);
return data as T;
const { data } = await fetchRepoFile<T>(repoPath, filePath, ref);
return data;
} catch (err) {
throw new Error(
i18n(`${i18nKey}.fetchFileFromRepository.errors.fetchFail`),
Expand Down
1 change: 1 addition & 0 deletions types/developerTestAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export type DeveloperTestAccount = {
createdAt: string;
updatedAt: string;
status: string;
id: number;
};

export type FetchDeveloperTestAccountsResponse = {
Expand Down

0 comments on commit 02f193d

Please sign in to comment.