From 7ab1a324bb73a45480ec2e2a71624e28b3cb26a0 Mon Sep 17 00:00:00 2001 From: "Konstantin S. Uvarin" Date: Mon, 11 Mar 2024 22:03:27 +0100 Subject: [PATCH] refactor(agent): use stats-logscale@1.0.9 which has native TS support --- clients/tabby-agent/package.json | 2 +- clients/tabby-agent/src/types/stats-logscale.d.ts | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 clients/tabby-agent/src/types/stats-logscale.d.ts diff --git a/clients/tabby-agent/package.json b/clients/tabby-agent/package.json index 2086b821de22..7ab08ed75ea6 100644 --- a/clients/tabby-agent/package.json +++ b/clients/tabby-agent/package.json @@ -81,7 +81,7 @@ "object-hash": "^3.0.0", "openapi-fetch": "^0.7.6", "pino": "^8.14.1", - "stats-logscale": "^1.0.7", + "stats-logscale": "^1.0.9", "toml": "^3.0.0", "uuid": "^9.0.0", "vscode-languageserver": "^9.0.1", diff --git a/clients/tabby-agent/src/types/stats-logscale.d.ts b/clients/tabby-agent/src/types/stats-logscale.d.ts deleted file mode 100644 index bdac3bb3f1f0..000000000000 --- a/clients/tabby-agent/src/types/stats-logscale.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Ref: https://github.com/dallaylaen/stats-logscale-js/blob/main/lib/univariate.js -declare module "stats-logscale" { - export class Univariate { - constructor(args?: { base?: number; precision?: number; bins?: string }); - add(...data: number[]): this; - count(): number; - mean(): number | undefined; - percentile(p: number): number | undefined; - } -}