web: add check compile test to prevent compile errors/warnings

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2023-01-01 23:32:05 +01:00
parent 93e20bce2e
commit 964fdf171b
13 changed files with 52 additions and 4 deletions

View File

@ -202,7 +202,7 @@ export abstract class Table<T> extends AKElement {
let comp = (item: T) => {
return JSON.stringify(item) === jsonRes;
};
if ("pk" in res) {
if (Object.hasOwn(res as object, "pk")) {
comp = (item: T) => {
return (
(item as unknown as { pk: string | number }).pk ===