Skip to content

Commit 2c22cb1

Browse files
committed
Updates dangerouslySetInnerHTML type so future TS will accept TrustedHTML automatically
1 parent 5e18356 commit 2c22cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface ClassAttributes<T> extends Attributes {
6666
export interface PreactDOMAttributes {
6767
children?: ComponentChildren;
6868
dangerouslySetInnerHTML?: {
69-
__html: string;
69+
__html: Parameters<DOMParser['parseFromString']>[0];
7070
};
7171
}
7272

0 commit comments

Comments
 (0)