File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { httpClient } from '../api/http' ;
2
2
import { ErrorObject , timeout } from '../errors/timeout' ;
3
+ import { OutputData } from '../types' ;
3
4
4
- export async function getRepoData ( repo : string ) : Promise < RepositoryData > {
5
+ export async function getRepoData ( repo : string ) : Promise < OutputData > {
5
6
const baseUrl = `https://api.github.com/repos/${ repo } ` ;
6
7
7
8
try {
Original file line number Diff line number Diff line change 1
1
import { httpClient } from '../api/http' ;
2
2
import { ErrorObject , timeout } from '../errors/timeout' ;
3
+ import { OutputData } from '../types' ;
3
4
4
- export async function getUserData ( username : string ) : Promise < UserData > {
5
+ export async function getUserData ( username : string ) : Promise < OutputData > {
5
6
const baseUrl = `https://api.github.com/users/${ username } ` ;
6
7
7
8
try {
You can’t perform that action at this time.
0 commit comments