-
Notifications
You must be signed in to change notification settings - Fork 843
Open
Description
I'm trying to use this code but label: 'Status' gives me error.
const lcd = contrib.lcd({
label: 'Status',
elements: 4,
top: 0,
left: '50%',
height: '25%',
width: '25%',
border: {
type: 'line',
fg: 'cyan',
},
})Error
Type '"Status"' is not assignable to type '"Storage Remaining"'.
blessed-contrib
export interface LcdOptions extends CanvasOptions {
segmentWidth?: number// how wide are the segments in % so 50% = 0.5
segmentInterval?: number// spacing between the segments in % so 50% = 0.550% = 0.5
strokeWidth?: number// spacing between the segments in % so 50% = 0.5
elements?: number// how many elements in the display. or how many characters can be displayed.
display?: number// what should be displayed before first call to setDisplay
elementSpacing?: number// spacing between each element
elementPadding?: number// how far away from the edges to put the elements
color?: 'white' // color for the segments
label?: 'Storage Remaining'
}I've just copy and past that code from the blessed-contrib package. At this point I can't change label. It should be always 'Storage Remaining' or empty.
Version
"blessed-contrib": "^4.11.0",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels