Skip to content

Commit

Permalink
fix: try support styled button
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Jan 27, 2025
1 parent 7fbc8e3 commit fbeb63c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// This file is for type testing only

// only use the type
import type { default as ButtonType } from '../../react/src/components/Button/index'
import styled from 'styled-components'
import type { default as ButtonType } from './index'
import type styledType from 'styled-components'

declare const Button: typeof ButtonType
declare const styled: typeof styledType

const Custom = ({ custom }: { custom: string }) => <>{custom}</>
const CustomGeneric = <C extends string>({ custom }: { custom: C }) => (
Expand Down

0 comments on commit fbeb63c

Please sign in to comment.