-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed string output as it is the same as the raw output
- Loading branch information
Showing
7 changed files
with
49 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { BaseComponent, BaseComponentOptions } from './BaseComponent'; | ||
|
||
export type DebugValueType = unknown; | ||
|
||
type GraphData = { | ||
type: 'graph'; | ||
range: { min: number; max: number }; | ||
}; | ||
|
||
type RawData = { | ||
type: 'raw'; | ||
multiline: true; | ||
rows: number; | ||
}; | ||
|
||
export type MonitorData = GraphData | RawData; | ||
|
||
type MonitorOptions = BaseComponentOptions & MonitorData; | ||
|
||
export class Monitor extends BaseComponent<DebugValueType> { | ||
constructor(options: MonitorOptions) { | ||
super(options, 0); | ||
} | ||
|
||
debug(value: unknown) { | ||
this.value = value; | ||
} | ||
} |