From d09ee05998aef963f5e904ac3823f757e430f7fc Mon Sep 17 00:00:00 2001 From: Paul Popus Date: Sun, 16 Apr 2023 22:32:45 +0700 Subject: [PATCH] Fix types in demo --- demo/src/payload.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/demo/src/payload.config.ts b/demo/src/payload.config.ts index ce40d56..609d932 100644 --- a/demo/src/payload.config.ts +++ b/demo/src/payload.config.ts @@ -8,6 +8,8 @@ import Media from "./collections/Media"; import Homepage from "./globals/Homepage"; import dashboardAnalytics from "../../dist/index"; +import { PlausibleProvider, GoogleProvider } from "../../dist/types/providers"; + const PLAUSIBLE_API_KEY = process.env.PLAUSIBLE_API_KEY; const PLAUSIBLE_HOST = process.env.PLAUSIBLE_HOST; const PLAUSIBLE_SITE_ID = process.env.PLAUSIBLE_SITE_ID; @@ -15,14 +17,14 @@ const PLAUSIBLE_SITE_ID = process.env.PLAUSIBLE_SITE_ID; const GOOGLE_PROPERTY_ID = process.env.GOOGLE_PROPERTY_ID; const GOOGLE_CREDENTIALS_FILE = process.env.GOOGLE_CREDENTIALS_FILE; -const plausibleProvider = { +const plausibleProvider: PlausibleProvider = { source: "plausible", apiSecret: PLAUSIBLE_API_KEY, siteId: PLAUSIBLE_SITE_ID, host: PLAUSIBLE_HOST, }; -const googleProvider = { +const googleProvider: GoogleProvider = { source: "google", //credentials: GOOGLE_CREDENTIALS_FILE, propertyId: GOOGLE_PROPERTY_ID,