Skip to content

Commit 76eb26b

Browse files
committed
refactor(utils): ♻️ update react utils
1 parent 0782918 commit 76eb26b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/react.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import * as React from "react";
22
import { AnyObject, Component, Options, Props } from "ariakit-utils";
33

4-
import { CheckboxDescriptionOptions } from "../checkbox";
5-
64
import { isFunction } from "./assertions";
75
import { tcm } from "./tailwindMerge";
86
import { As, ComponentWithAs, Dict, PropsWithAs, RenderProp } from "./types";
@@ -60,7 +58,7 @@ export function createComponent<O extends ComponentOptions>(
6058
}
6159

6260
export type ComponentProps<O> = Component<O> & {
63-
defaultProps?: CheckboxDescriptionOptions<"div"> & { __TYPE__: string };
61+
defaultProps?: { __TYPE__: string };
6462
};
6563

6664
export type ComponentOptions<T extends As = any> = Options<T> & {

0 commit comments

Comments
 (0)