Skip to content

Commit 1bd1824

Browse files
fix(attributes-to-props): correct attributes-to-props type Props
Fixes #242
1 parent 0ed9598 commit 1bd1824

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/attributes-to-props.d.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// TypeScript Version: 4.1
22

33
export type Attributes = Record<string, string>;
4-
export type Props = Attributes;
4+
5+
export type Props = Record<string, string> & {
6+
style: Record<string, string>;
7+
};
58

69
/**
710
* Converts HTML/SVG DOM attributes to React props.

0 commit comments

Comments
 (0)