From f3d7a713d1090b6ee2fa88621e6ceb59f7b822d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Wojtczak?= Date: Sun, 28 Oct 2018 13:26:26 +0100 Subject: [PATCH] use Key type for Attributes interface key property --- src/preact.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }