Update kanbn dependency, fix typing error

This commit is contained in:
Gordon
2021-05-15 23:20:49 +01:00
parent d78a1149cc
commit a8ca54f151
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,4 @@
import { status } from '@basementuniverse/kanbn/src/main';
import * as vscode from 'vscode';
export default class KanbnStatusBarItem {
@ -18,7 +19,12 @@ export default class KanbnStatusBarItem {
return;
}
if (await this._kanbn.initialised()) {
const status = await this._kanbn.status(true);
const status = (await this._kanbn.status(true)) as {
tasks: number,
columnTasks: Record<string, number>,
startedTasks?: number,
completedTasks?: number
};
const text = [
`$(project) ${status.tasks}`
];