From 188ed881d16a89a8edd2a39e149bda4400811bee Mon Sep 17 00:00:00 2001 From: Alex Jover Date: Wed, 8 Jun 2022 20:26:50 +0200 Subject: [PATCH] feat: expose StoryblokClient as a type --- lib/index.ts | 1 - lib/types.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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;