Skip to content

Commit cd6495d

Browse files
committed
fix: setAttrs type
1 parent 8c7205c commit cd6495d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/layer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Layer(
7979
) {
8080
const shouldRenderRef = React.useRef(true);
8181

82-
const [attrs, setAttrs] = React.useState<Attrs>(() => {
82+
const [attrs, setAttrs] = React.useState<Partial<Attrs>>(() => {
8383
return {
8484
opacity,
8585
backgroundColor,

0 commit comments

Comments
 (0)