Skip to content

Commit

Permalink
fix: GradientTexture type overlapping with texture type (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickardson authored Sep 22, 2024
1 parent d6383e1 commit 1dfd9a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/GradientTexture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ type Props = {
type?: GradientType
innerCircleRadius?: number
outerCircleRadius?: string | number
} & JSX.IntrinsicElements['texture']
} & Omit<JSX.IntrinsicElements['texture'], 'type'>

export function GradientTexture({
stops,
colors,
size = 1024,
width = 16,
//@ts-ignore - weird error about type never, although the type is clearly defined
type = GradientType.Linear,
innerCircleRadius = 0,
outerCircleRadius = 'auto',
Expand Down

0 comments on commit 1dfd9a0

Please sign in to comment.