1
0

feat: add TSDoc definition to some models

This commit is contained in:
Dominik Pschenitschni
2022-02-13 19:57:12 +01:00
committed by kolaente
parent 658ca4c955
commit 16d8c2224b
5 changed files with 169 additions and 36 deletions

View File

@ -1,4 +1,7 @@
export const parseDateOrNull = date => {
/**
* Make date objects from timestamps
*/
export function parseDateOrNull(date) {
if (date instanceof Date) {
return date
}