Update index.d.ts (#38685)

Use same signature for `defaultValue` as `value`
This commit is contained in:
Aaron Reisman 2019-10-03 15:25:01 -07:00 committed by Ryan Cavanaugh
parent ce5a543705
commit 554555bf57

View File

@ -1632,7 +1632,7 @@ declare namespace React {
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
// React-specific Attributes
defaultChecked?: boolean;
defaultValue?: string | string[];
defaultValue?: string | number | string[];
suppressContentEditableWarning?: boolean;
suppressHydrationWarning?: boolean;