📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
api ai to ts
kruzhambus74d8b9df22b0
diff --git a/src/api/ai.js b/src/api/ai.tssimilarity index 91%rename from src/api/ai.jsrename to src/api/ai.tsindex 21a34acdb..b2923f882 100644--- a/src/api/ai.js+++ b/src/api/ai.ts@@ -17,7 +17,7 @@ const api = axios.create({* @param {*} frequency The frequency of the chart data, e.g. h | w | m* @returns The prediction for the given data.*/-export const getChartPrediction = (chart, periodToForecast, frequency) =>+export const getChartPrediction = (chart: any, periodToForecast: any, frequency: any) =>api.post('/', {...chart,