mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: fix typescript-strict-mode error (#40566)
* loki: fix typescript-strict error * loki: fix typescript-strict-mode error
This commit is contained in:
@@ -38,7 +38,7 @@ export class LiveStreams {
|
|||||||
data.meta = { ...data.meta, preferredVisualisationType: 'logs' };
|
data.meta = { ...data.meta, preferredVisualisationType: 'logs' };
|
||||||
data.refId = target.refId;
|
data.refId = target.refId;
|
||||||
|
|
||||||
stream = webSocket(target.url).pipe(
|
stream = webSocket<LokiTailResponse>(target.url).pipe(
|
||||||
map((response: LokiTailResponse) => {
|
map((response: LokiTailResponse) => {
|
||||||
appendResponseToBufferedData(response, data);
|
appendResponseToBufferedData(response, data);
|
||||||
return [data];
|
return [data];
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set -e
|
|||||||
|
|
||||||
echo -e "Collecting code stats (typescript errors & more)"
|
echo -e "Collecting code stats (typescript errors & more)"
|
||||||
|
|
||||||
ERROR_COUNT_LIMIT=13
|
ERROR_COUNT_LIMIT=12
|
||||||
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
|
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')"
|
||||||
|
|
||||||
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user