From bee3a4b2336c5db90e8be49b0ca5f5c86ee1d62e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 30 Dec 2024 13:22:15 +0100 Subject: [PATCH] Type notifications --- .../grid/stores/{notifications.js => notifications.ts} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename packages/frontend-core/src/components/grid/stores/{notifications.js => notifications.ts} (87%) diff --git a/packages/frontend-core/src/components/grid/stores/notifications.js b/packages/frontend-core/src/components/grid/stores/notifications.ts similarity index 87% rename from packages/frontend-core/src/components/grid/stores/notifications.js rename to packages/frontend-core/src/components/grid/stores/notifications.ts index 4e8b49414d..05c8039704 100644 --- a/packages/frontend-core/src/components/grid/stores/notifications.js +++ b/packages/frontend-core/src/components/grid/stores/notifications.ts @@ -1,7 +1,8 @@ import { notifications as BBUINotifications } from "@budibase/bbui" import { derived } from "svelte/store" +import { Store as StoreContext } from "." -export const createStores = context => { +export const createStores = (context: StoreContext) => { const { notifySuccess, notifyError } = context // Normally we would not derive a store in "createStores" as it should be