From 9208b5ad27e688ad86f6372a3a8b9e958a1c0763 Mon Sep 17 00:00:00 2001 From: Tim de Koning Date: Thu, 7 Jun 2018 17:55:57 +0200 Subject: [PATCH 1/2] Add support for --- types/material-ui/index.d.ts | 5 +++-- types/material-ui/material-ui-tests.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 2d8631eb22..6893d64189 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for material-ui 0.20 +// Type definitions for material-ui 0.21 // Project: https://github.com/callemall/material-ui // Definitions by: Nathan Brown // Igor Beagorudsky @@ -12,6 +12,7 @@ // Dan Jones // Daisuke Mino // Sam Walsh +// Tim de Koning // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -1144,7 +1145,7 @@ declare namespace __MaterialUI { } namespace List { - export interface ListProps { + export interface ListProps extends PaperProps { // is the element that get the 'other' properties style?: React.CSSProperties; } diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index a7bb59fcf8..93035bd5d6 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -2536,7 +2536,7 @@ const AutoCompleteExampleFilters = () => ( // "http://www.material-ui.com/#/components/avatar" const AvatarExampleSimple = () => ( - + Date: Thu, 21 Jun 2018 10:04:49 +0200 Subject: [PATCH 2/2] Updated support for (Thanks @samwalshnz) --- types/material-ui/index.d.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 6893d64189..21ee89c329 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1145,12 +1145,8 @@ declare namespace __MaterialUI { } namespace List { - export interface ListProps extends PaperProps { - // is the element that get the 'other' properties - style?: React.CSSProperties; - } - export class List extends React.Component { - } + export interface ListProps extends React.HTMLAttributes<{}> {} + export class List extends React.Component {} export interface ListItemProps extends EnhancedButtonProps { // is the element that get the 'other' properties