Skip to content

Commit c979fce

Browse files
committed
fix: issue with default props for e2e tests
1 parent d976239 commit c979fce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

e2e/e2e-app/src/components/default-props/default-props.lite.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { useDefaultProps, useStore } from '@builder.io/mitosis';
22

33
useDefaultProps({ foo: 'abc', bar: 'foo' });
44

5-
export default function DefaultProps(props: any) {
5+
type Props = {
6+
foo?: string;
7+
bar?: string;
8+
};
9+
10+
export default function DefaultProps(props: Props) {
611
const state = useStore({
712
getProps: () => {
813
return JSON.stringify({ foo: props.foo, bar: props.bar });

0 commit comments

Comments
 (0)