add overload function to gettotalpage, and new type

This commit is contained in:
fadingNA
2024-11-07 23:22:03 -05:00
parent 7ff86a2aee
commit 3d03826db5
2 changed files with 37 additions and 9 deletions

View File

@@ -14,6 +14,12 @@ export type Doc = {
syncFrequency?: string;
};
export type GetDocsResponse = {
docs: Doc[];
totalDocuments: number;
totalPages: number;
};
export type PromptProps = {
prompts: { name: string; id: string; type: string }[];
selectedPrompt: { name: string; id: string; type: string };