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
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
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
}