File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import fs from 'node:fs/promises'
22
3- import { Widgets } from 'blessed'
3+ // @ts -ignore
4+ import ScreenWidget from 'blessed/lib/widgets/screen'
45import contrib from 'blessed-contrib'
56
67import { Spinner } from '@socketsecurity/registry/lib/spinner'
78
89import { handleApiCall , handleUnsuccessfulApiResponse } from '../../utils/api'
910import { setupSdk } from '../../utils/sdk'
1011
12+ import type { Widgets } from 'blessed' // Note: Widgets does not seem to actually work as code :'(
13+
1114type FormattedData = {
1215 top_five_alert_types : { [ key : string ] : number }
1316 total_critical_alerts : { [ key : string ] : number }
@@ -98,7 +101,7 @@ export async function displayAnalytics({
98101}
99102
100103function displayAnalyticsScreen ( data : FormattedData ) : void {
101- const screen = new Widgets . Screen ( { } )
104+ const screen : Widgets . Screen = new ScreenWidget ( { } )
102105 const grid = new contrib . grid ( { rows : 5 , cols : 4 , screen } )
103106
104107 renderLineCharts (
You can’t perform that action at this time.
0 commit comments