(value: ScreenshotObject["LastModified"])
| 36 | lastModified: number | null; |
| 37 | }; |
| 38 | const getScreenshotObjectTime = (value: ScreenshotObject["LastModified"]) => { |
| 39 | if (value == null) return null; |
| 40 | const time = |
| 41 | value instanceof Date ? value.getTime() : new Date(value).getTime(); |
| 42 | return Number.isFinite(time) ? time : null; |
| 43 | }; |
| 44 | export const findScreenshotObjectKey = ( |
| 45 | contents: ReadonlyArray<ScreenshotObject>, |
| 46 | ) => { |
no outgoing calls
no test coverage detected