Skip to content

Commit

Permalink
Fix typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Dec 8, 2024
1 parent 2af1dca commit 933cdda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/server/force-theme/force-theme.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { HTMLProps } from "react";
import type { HTMLProps, ReactNode } from "react";

interface ForceThemeProps extends HTMLProps<HTMLElement> {
/** @defaultValue 'div' */
tag?: keyof JSX.IntrinsicElements;
tag?: keyof ReactNode;
children?: React.ReactNode;
theme?: string;
colorScheme?: "dark" | "light";
Expand Down
3 changes: 2 additions & 1 deletion lib/src/server/server-target/server-target.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { cookies } from "next/headers";
import { DEFAULT_ID } from "../../constants";
import { ReactNode } from "react";

interface ServerTargetProps {
/** @defaultValue 'div' */
tag?: keyof JSX.IntrinsicElements;
tag?: keyof ReactNode;
/** id of target element if you are applying theme only to specific container.
* make sure you pass same targetId to corresponding `ThemeSwitcher`, `ColorSwitch` and `useTheme` hook as well.
* @defaultValue undefined*/
Expand Down

0 comments on commit 933cdda

Please sign in to comment.