Skip to content

Commit

Permalink
correct typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Oct 16, 2023
1 parent 03d18d5 commit 474d080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import type { ExampleRunOpts } from "../types";
import type { WidgetExample } from "../WidgetExample";
type TWidgetExample = $$Generic<WidgetExample>;
Expand All @@ -10,7 +11,7 @@
export let classNames = "";
export let isLoading = false;
export let inputSamples: TWidgetExample[];
export let applyInputSample: (sample: TWidgetExample, opts?: { isPreview?: boolean }) => void;
export let applyInputSample: (sample: TWidgetExample, opts?: ExampleRunOpts) => void;
let containerEl: HTMLElement;
let isOptionsVisible = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { WidgetProps, ModelLoadInfo } from "../types";
import type { WidgetProps, ModelLoadInfo, ExampleRunOpts } from "../types";
import type { WidgetExample } from "../WidgetExample";
type TWidgetExample = $$Generic<WidgetExample>;
Expand Down Expand Up @@ -28,7 +28,7 @@
};
export let noTitle = false;
export let outputJson: string;
export let applyInputSample: (sample: TWidgetExample, opts?: { isPreview?: boolean }) => void = () => {};
export let applyInputSample: (sample: TWidgetExample, opts?: ExampleRunOpts) => void = () => {};
export let validateExample: (sample: WidgetExample) => sample is TWidgetExample;
let isMaximized = false;
Expand Down

0 comments on commit 474d080

Please sign in to comment.