Skip to content

Commit 17ed4ff

Browse files
committed
fix typecheck issues
1 parent d45c859 commit 17ed4ff

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/threadclient-ui-terminal/src/terminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function unlink(content: Generic.Page2Content, link: Generic.Link<Generic.Post>)
2727
parent: null,
2828
replies: null,
2929
client_id: "n/a",
30-
url_deprecated: null,
30+
url: null,
3131

3232
kind: "post",
3333

packages/threadclient-ui-web/src/page1.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ function linkButton(
4141
;
4242
}else if(link_type.kind === "mailto") {
4343
return el("span").attr({title: link_type.title});
44+
}else if(link_type.kind === "none") {
45+
return el("span");
46+
}else if(link_type.kind === "button") {
47+
return el("button");
4448
}else if(link_type.kind === "link") {
4549
const href = link_type.url;
4650
const settings = getSettings();

packages/tmeta-util-solid/src/control_flow_solid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export function runTask<T>(p: Promise<T>, desc: TaskContext): void {
288288
let timeout: number | undefined = setTimeout(() => {
289289
timeout = undefined;
290290
// TODO: show a notification with the task and a cancel button if a cancelation token is passed
291-
}, 1000);
291+
}, 1000) as unknown as number;
292292
p.then(() => {
293293
if (timeout != null) clearTimeout(timeout);
294294
}).catch(e => showError(e, desc));

0 commit comments

Comments
 (0)