Skip to content

Commit 1dfd9a0

Browse files
authored
fix: GradientTexture type overlapping with texture type (#2099)
1 parent d6383e1 commit 1dfd9a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/core/GradientTexture.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ type Props = {
1616
type?: GradientType
1717
innerCircleRadius?: number
1818
outerCircleRadius?: string | number
19-
} & JSX.IntrinsicElements['texture']
19+
} & Omit<JSX.IntrinsicElements['texture'], 'type'>
2020

2121
export function GradientTexture({
2222
stops,
2323
colors,
2424
size = 1024,
2525
width = 16,
26-
//@ts-ignore - weird error about type never, although the type is clearly defined
2726
type = GradientType.Linear,
2827
innerCircleRadius = 0,
2928
outerCircleRadius = 'auto',

0 commit comments

Comments
 (0)