fix: updated type guard to allow textContent to be null
ed894b34
1 file(s) · +1 −1
| 25 | 25 | typeof v.title === "string" && |
|
| 26 | 26 | typeof v.site === "string" && |
|
| 27 | 27 | typeof v.path === "string" && |
|
| 28 | - | typeof v.textContent === "string" && |
|
| 28 | + | (v.textContent === undefined || typeof v.textContent === "string") && |
|
| 29 | 29 | typeof v.publishedAt === "string" && |
|
| 30 | 30 | (v.updatedAt === undefined || typeof v.updatedAt === "string") |
|
| 31 | 31 | ); |