Skip to content

Commit 4612f92

Browse files
committed
Update types.ts
1 parent 79e7988 commit 4612f92

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/types.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { HTTPStatusRes } from './structures/http_status';
2+
13
interface GistOptions {
24
secret: boolean;
35
}
@@ -53,10 +55,15 @@ interface GistResponse {
5355
truncated: boolean;
5456
}
5557

58+
interface ReqRet<T> {
59+
data?: T;
60+
status: HTTPStatusRes;
61+
}
62+
5663
interface GistFile {
5764
[key: string]: {
5865
content: string;
5966
};
6067
}
6168

62-
export { GistOptions, IGist, GistResponse, GistFile };
69+
export { GistOptions, IGist, GistResponse, GistFile, ReqRet };

0 commit comments

Comments
 (0)