diff --git a/components/layout/layout.tsx b/components/layout/layout.tsx index 5f586ed27a..c345376fc6 100644 --- a/components/layout/layout.tsx +++ b/components/layout/layout.tsx @@ -1,5 +1,6 @@ import React from 'react'; import classNames from 'classnames'; +import { SiderProps } from './Sider'; export interface BasicProps { style?: React.CSSProperties; @@ -40,7 +41,12 @@ class Basic extends React.Component { } } -const Layout = generator({ +const Layout: React.ComponentClass & { + Header: React.ComponentClass; + Footer: React.ComponentClass; + Content: React.ComponentClass; + Sider: React.ComponentClass; +} = generator({ prefixCls: 'ant-layout', })(Basic);