Added Metadata to Gist API routes

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2023-06-24 13:09:53 +05:30
parent 42cbc2e6ec
commit bdbca19eba
Signed by: bravo68web
GPG Key ID: F5671FD7BCB9917A
1 changed files with 11 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export interface IGistService {
searchString: string,
pageNo: number,
pageSize: number
): Promise<Gists[]>;
): Promise<IListGists>;
}
export interface IPrivate {
@ -40,3 +40,13 @@ export interface IPrivate {
export interface GistRep extends Gists {
gist_url?: string;
}
export interface IListGists {
data: Gists[];
meta: {
total: number;
pageNo: number;
pageSize: number;
totalPages: number;
};
}