From 2122996f9aa835ccd5688fa071dd76ac7711cd54 Mon Sep 17 00:00:00 2001 From: schabibi1 Date: Fri, 22 Jul 2022 15:38:09 +0200 Subject: [PATCH] fix: fix default type of newStory --- lib/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 280fba5d..9ecfc502 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -5,11 +5,12 @@ import { StoryblokBridgeV2, StoryData, SbInitResult, + StoryblokComponentType } from "./types"; const bridgeLatest = "https://app.storyblok.com/f/storyblok-v2-latest.js"; -export const useStoryblokBridge = ( +export const useStoryblokBridge = = any>( id: Number, cb: (newStory: StoryData) => void, options: StoryblokBridgeConfigV2 = {}