Skip to content

📈 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!

api ai to ts

kruzhambus74d8b9df22b0
diff --git a/src/api/ai.js b/src/api/ai.ts
similarity index 91%
rename from src/api/ai.js
rename to src/api/ai.ts
index 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,