diff --git a/lib/index.ts b/lib/index.ts index 227590e..746514f 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -73,4 +73,3 @@ export const loadStoryblokBridge = () => { // Reexport all types so users can have access to them export * from "./types"; -export { default as StoryblokClient } from "storyblok-js-client"; diff --git a/lib/types.ts b/lib/types.ts index 142f3e3..41fa730 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,8 +1,10 @@ -import StoryblokClient, { +import StoryblokJSClient, { StoryblokConfig, StoryblokComponent, } from "storyblok-js-client"; +export type StoryblokClient = typeof StoryblokJSClient; + declare global { interface Window { storyblokRegisterEvent: (cb: Function) => void;