Skip to content

Commit

Permalink
style: rename uploadsInfo to UploadsInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jul 10, 2024
1 parent 01fff80 commit 17b2769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Dashboard/Storage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PouchDB from 'pouchdb';
import { AllDocs, Doc, uploadsInfo } from '../Types';
import { AllDocs, Doc, UploadsInfo } from '../Types';
import * as Papa from 'papaparse';
import * as mammoth from 'mammoth/mammoth.browser';

Expand All @@ -13,7 +13,7 @@ function getAllDocuments(): Promise<AllDocs> {
});
}

export async function fetchUploads(): Promise<uploadsInfo> {
export async function fetchUploads(): Promise<UploadsInfo> {
try {
const res = await getAllDocuments();
return res.rows.map((row) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type Doc = {
};
};

export type uploadsInfo = {
export type UploadsInfo = {
id: string;
name: string;
}[];
Expand Down

0 comments on commit 17b2769

Please sign in to comment.