Skip to content

Commit

Permalink
feat: expose StoryblokClient as a type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed Jun 8, 2022
1 parent 75f31c7 commit 188ed88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
4 changes: 3 additions & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 188ed88

Please sign in to comment.