Skip to content

Commit

Permalink
use Key type for Attributes interface key property
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtczal committed Oct 28, 2018
1 parent 420a45c commit f3d7a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preact.d.ts
Expand Up @@ -22,7 +22,7 @@ declare namespace preact {
type PreactHTMLAttributes = ClassAttributes<any>;

interface Attributes {
key?: string | number | any;
key?: Key;
jsx?: boolean;
}

Expand Down

0 comments on commit f3d7a71

Please sign in to comment.