Skip to content

Commit

Permalink
Merge pull request #76 from ridem/fix/tiny-type-fixes
Browse files Browse the repository at this point in the history
Tiny type fixes
  • Loading branch information
manuelschroederdev authored Jan 2, 2023
2 parents dee1fc5 + 2f76a82 commit b048d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/StoryblokComponent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { SbBlokData } from "./types";
interface Props {
blok: SbBlokData;
props: object;
[prop: string]: unknown;
}
const { blok, ...props } = Astro.props;
Expand Down
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { vitePluginStoryblokComponents } from "./vite-plugin-storyblok-component
import {
RichTextResolver,
renderRichText as origRenderRichText,
StoryblokClient,
} from "@storyblok/js";

import type { AstroIntegration } from "astro";
Expand All @@ -17,7 +18,7 @@ export {
RichTextSchema,
} from "@storyblok/js";

export function useStoryblokApi() {
export function useStoryblokApi(): StoryblokClient {
if (!globalThis.storyblokApiInstance) {
console.error("storyblokApiInstance has not been initialized correctly");
}
Expand Down

0 comments on commit b048d3c

Please sign in to comment.