web: update tsconfig strictness

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2023-01-01 23:44:15 +01:00
parent 1c1319927e
commit 475853fb14
6 changed files with 16 additions and 3 deletions

View File

@ -108,12 +108,12 @@ export abstract class AKChart<T> extends AKElement {
const canvas = this.shadowRoot?.querySelector<HTMLCanvasElement>("canvas");
if (!canvas) {
console.warn("Failed to get canvas element");
return false;
return;
}
const ctx = canvas.getContext("2d");
if (!ctx) {
console.warn("failed to get 2d context");
return false;
return;
}
this.chart = this.configureChart(r, ctx);
});

View File

@ -101,6 +101,7 @@ export class RouterOutlet extends AKElement {
console.debug("authentik/router: found match ", matchedRoute);
return true;
}
return false;
});
if (!matchedRoute) {
console.debug(`authentik/router: route "${activeUrl}" not defined`);

View File

@ -134,6 +134,7 @@ export class SidebarItem extends AKElement {
if (match !== null) {
return true;
}
return false;
});
}

View File

@ -102,6 +102,7 @@ export class UserSettingsPage extends AKElement {
configureUrl=${ifDefined(pwStage[0].configureUrl)}
></ak-user-settings-password>`;
}
return html``;
}),
)}
</div>