feat: add TSDoc definition to some models
This commit is contained in:
parent
658ca4c955
commit
16d8c2224b
5 changed files with 169 additions and 36 deletions
|
|
@ -1,4 +1,7 @@
|
|||
export const parseDateOrNull = date => {
|
||||
/**
|
||||
* Make date objects from timestamps
|
||||
*/
|
||||
export function parseDateOrNull(date) {
|
||||
if (date instanceof Date) {
|
||||
return date
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue