Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed Oct 21, 2023
1 parent 1c89cd8 commit ce2914e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
interface getRandomFox {
success: boolean;
status: number;
info: {
category: string;
endpoint: string;
};
message: string;
declare module 'random-fox-img' {
interface FoxImageData {
success: boolean;
status: number;
info: {
category: string;
endpoint: string;
};
message: string;
}

function getRandomFox(): Promise<FoxImageData>;
export = getRandomFox;
}

0 comments on commit ce2914e

Please sign in to comment.