diff --git a/src/preact.d.ts b/src/preact.d.ts index ffc11a13e7..79f26ddc85 100644 --- a/src/preact.d.ts +++ b/src/preact.d.ts @@ -22,7 +22,7 @@ declare namespace preact { type PreactHTMLAttributes = ClassAttributes; interface Attributes { - key?: string | number | any; + key?: Key; jsx?: boolean; }