mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #27811 from overleaf/dp-file-view-typescript
Convert file-view components and test files to typescript GitOrigin-RevId: 277aa8fd4f3d06a322dc9d0b372eebefb26fd285
This commit is contained in:
@@ -22,10 +22,10 @@ export function convertFileRefToBinaryFile(fileRef: FileRef): BinaryFile {
|
||||
// is the only one making runtime complaints and it seems that other uses of
|
||||
// `FileViewHeader` pass in a string for `created`, so that's what this function
|
||||
// does too.
|
||||
export function fileViewFile(fileRef: FileRef) {
|
||||
export function fileViewFile(fileRef: FileRef): BinaryFile {
|
||||
const converted = convertFileRefToBinaryFile(fileRef)
|
||||
return {
|
||||
...converted,
|
||||
created: converted.created.toISOString(),
|
||||
created: (converted.created as Date).toISOString(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user