Chore: improve some types (#95728)

* fix some typings

* fix some more

* more type fixes

* fix some graphite types

* few influx fixes
This commit is contained in:
Ashley Harrison
2024-11-05 09:57:30 +00:00
committed by GitHub
parent 34269a03c0
commit 0fae3579e8
34 changed files with 127 additions and 231 deletions
@@ -550,8 +550,11 @@ export function parseLabelsFromField(str: string): Labels {
* @internal // not exported in yet
*/
export function getLastStreamingDataFramePacket(frame: DataFrame) {
const pi = (frame as StreamingDataFrame).packetInfo;
return pi?.action ? pi : undefined;
if (frame instanceof StreamingDataFrame) {
const pi = frame.packetInfo;
return pi.action;
}
return undefined;
}
// mutable circular push