21 lines
316 B
TypeScript
21 lines
316 B
TypeScript
interface GCIAPIResult {
|
|
count: number;
|
|
next: null | number;
|
|
previous: null | number;
|
|
results: GCIResult[];
|
|
}
|
|
|
|
interface GCIResult {
|
|
id: string;
|
|
shortlink: string | null;
|
|
name: string;
|
|
url: string;
|
|
}
|
|
|
|
interface APIResult {
|
|
error?: boolean;
|
|
payload: string;
|
|
}
|
|
|
|
export { GCIAPIResult, APIResult };
|