fixed types

This commit is contained in:
Fran Jurmanović
2021-06-02 23:29:05 +02:00
parent c840041b51
commit 8754b4391b
26 changed files with 185 additions and 175 deletions

View File

@@ -1,7 +1,5 @@
import { controller } from "@github/catalyst";
import { closest, update } from "core/utils";
import { html, render } from "@github/jtml";
import { AppMainElement } from "components/";
import { html, TemplateResult } from "@github/jtml";
import { BasePageElement } from "common/";
@controller
@@ -9,14 +7,16 @@ class NotFoundElement extends BasePageElement {
constructor() {
super();
}
elementConnected = () => {
elementConnected = (): void => {
this.update();
};
render = () => {
render = (): TemplateResult => {
return html`
<div>404 - Page not found</div>
<div><app-link data-to="/" data-title="Homepage"></app-link></div>
`;
};
}
export type { NotFoundElement };