browsertrix/frontend/src/types
Emma Segal-Grossman 780dd09321
Create ArchivedItemPage and ArchivedItemPageComment types (#1567)
Based on #1534

Figured this should be in place so we can work on other front-end things
with these, rather than dealing with refactoring later

<!-- Fixes #issue_number -->

### Changes

- Adds `ArchivedItemPage` and `ArchivedItemPageComment` types from #1534
(thank you @SuaYoo!)
- Adds typedefs for match and resource count properties
- sets properties optional in the db schema to optional in the type as
well

### Manual testing

1.

### Screenshots

| Page | Image/video |
| ---- | ----------- |
|      |             |

<!-- ### Follow-ups -->
2024-03-04 18:52:09 -05:00
..
api.ts Update collection archived item lists (#1457) 2024-01-22 17:14:53 -08:00
browser.ts ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
collection.ts ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
crawler.ts Create ArchivedItemPage and ArchivedItemPageComment types (#1567) 2024-03-04 18:52:09 -05:00
events.d.ts Improve frontend event system (#1450) 2023-12-13 14:11:15 -08:00
org.ts Add comments I meant to add in #1528 (#1529) 2024-02-12 19:33:16 -05:00
user.ts chore: format frontend files with prettier 2023-03-27 11:05:19 -07:00
utils.ts Add comments I meant to add in #1528 (#1529) 2024-02-12 19:33:16 -05:00