Skip to content

Commit

Permalink
feat: improved types (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored Feb 28, 2024
1 parent 7fe1233 commit 859350e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fixtures/Button.mist.css.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Props = {
children?: React.ReactNode
size?: 'lg' | 'sm'
danger?: boolean
}
} & JSX.IntrinsicElements['button']

export function Button({ children, size, danger, ...props }: Props) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import './${name}.mist.css'
type Props = {
children?: React.ReactNode
${renderProps(parsedInput)}
}
} & JSX.IntrinsicElements['${parsedInput.tag}']
export function ${name}({ children, ${Object.keys(parsedInput.data).join(
', ',
Expand Down

0 comments on commit 859350e

Please sign in to comment.