Skip to content

Commit

Permalink
사용하지 않는 타입 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
CirnoV committed Nov 19, 2024
1 parent 1632eca commit ccef974
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/state/interactive-docs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import type {
DefaultParams,
Section,
} from "~/components/interactive-docs/code";
import type { CodePreviewProps } from "~/components/interactive-docs/CodePreview";

export type CodeExample<
Params extends DefaultParams,
Expand Down Expand Up @@ -85,9 +84,9 @@ const [InteractiveDocsProvider, useInteractiveDocs] = createContextProvider(
payMethods: "card",
},
});
const [preview, setPreview] = createSignal<
Component<CodePreviewProps> | undefined
>(undefined);
const [preview, setPreview] = createSignal<Component | undefined>(
undefined,
);
const [pgOptions, setPgOptions] = createSignal<PgOptions>({
inicis: {
payMethods: ["card"],
Expand Down Expand Up @@ -269,7 +268,7 @@ const [InteractiveDocsProvider, useInteractiveDocs] = createContextProvider(
highlighter: () => undefined,
highlightSection: () => null,
preview: () => undefined,
setPreview: ((_) => {}) as Setter<Component<CodePreviewProps> | undefined>,
setPreview: ((_) => {}) as Setter<Component | undefined>,
},
);

Expand Down

0 comments on commit ccef974

Please sign in to comment.