Skip to content

Commit 6e270ec

Browse files
committed
fix: update getRepoData and getUserData return types to OutputData
1 parent d765e9c commit 6e270ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/commands/repo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { httpClient } from '../api/http';
22
import { ErrorObject, timeout } from '../errors/timeout';
3+
import { OutputData } from '../types';
34

4-
export async function getRepoData(repo: string): Promise<RepositoryData> {
5+
export async function getRepoData(repo: string): Promise<OutputData> {
56
const baseUrl = `https://api.github.com/repos/${repo}`;
67

78
try {

src/commands/user.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { httpClient } from '../api/http';
22
import { ErrorObject, timeout } from '../errors/timeout';
3+
import { OutputData } from '../types';
34

4-
export async function getUserData(username: string): Promise<UserData> {
5+
export async function getUserData(username: string): Promise<OutputData> {
56
const baseUrl = `https://api.github.com/users/${username}`;
67

78
try {

0 commit comments

Comments
 (0)