mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
ae62ef7087
* fix(types): external module type error (CompoundedComponent) * feat(types): export CountdownProps
24 lines
570 B
TypeScript
24 lines
570 B
TypeScript
import InternalLayout, { Content, Footer, Header } from './layout';
|
|
import Sider from './Sider';
|
|
|
|
export { BasicProps as LayoutProps } from './layout';
|
|
export { SiderProps } from './Sider';
|
|
|
|
type InternalLayoutType = typeof InternalLayout;
|
|
|
|
type CompoundedComponent = InternalLayoutType & {
|
|
Header: typeof Header;
|
|
Footer: typeof Footer;
|
|
Content: typeof Content;
|
|
Sider: typeof Sider;
|
|
};
|
|
|
|
const Layout = InternalLayout as CompoundedComponent;
|
|
|
|
Layout.Header = Header;
|
|
Layout.Footer = Footer;
|
|
Layout.Content = Content;
|
|
Layout.Sider = Sider;
|
|
|
|
export default Layout;
|