antd: Fix notification typings.

These are exported as 'notification' rather than 'Notification'
so we need to use the correct case when providing the typings.
This commit is contained in:
Bruce Mitchener
2016-03-18 22:09:14 +07:00
parent cc3d223a94
commit f5733421f8
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ import React = __React
Menu,
message,
Modal,
Notification,
notification,
Pagination,
Popconfirm,
Popover,
@@ -71,7 +71,7 @@ import Col from 'antd/lib/Col'
import Menu from 'antd/lib/Menu'
import message from 'antd/lib/message'
import Modal from 'antd/lib/Modal'
import Notification from 'antd/lib/Notification'
import notification from 'antd/lib/notification'
import Pagination from 'antd/lib/Pagination'
import Popconfirm from 'antd/lib/Popconfirm'
import Popover from 'antd/lib/Popover'
@@ -229,7 +229,7 @@ class App extends React.Component<any, any>{
Modal.info({ title: 'hello' });
Modal.success({ cancelText: 'No' })
Notification.success({
notification.success({
message: 'hello',
description: 'test'
})
+4 -4
View File
@@ -871,7 +871,7 @@ declare namespace Antd {
duration?: number
}) => void
/**
* #Notification
* #notification
全局展示通知提醒信息。
## 何时使用
@@ -881,7 +881,7 @@ declare namespace Antd {
- 较为复杂的通知内容。
- 带有交互的通知,给出用户下一步的行动点。
- 系统主动推送。*/
export const Notification: {
export const notification: {
success: NotificationFunc
error: NotificationFunc
info: NotificationFunc
@@ -1911,8 +1911,8 @@ declare module 'antd/lib/message' {
declare module 'antd/lib/Modal' {
export default Antd.Modal
}
declare module 'antd/lib/Notification' {
export default Antd.Notification
declare module 'antd/lib/notification' {
export default Antd.notification
}
declare module 'antd/lib/Pagination' {
export default Antd.Pagination