diff --git a/package.json b/package.json index 19d3df9..09cd11b 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "antd": "3.17.0", - "bs-moment": "^0.4.4", + "bs-moment": "^0.8.0", "re-classnames": "^4.0.0" } -} +} \ No newline at end of file diff --git a/src/Antd_Message.re b/src/Antd_Message.re index 31ffc55..1756e94 100644 --- a/src/Antd_Message.re +++ b/src/Antd_Message.re @@ -5,19 +5,19 @@ type duration = int; type options; type callback = (. unit) => unit; [@bs.module "antd/lib/message"] -external success: (content, duration) => unit = ""; +external success: (content, duration) => unit = "success"; [@bs.module "antd/lib/message"] -external error: (content, duration) => unit = ""; +external error: (content, duration) => unit = "error"; [@bs.module "antd/lib/message"] -external info: (content, duration) => unit = ""; +external info: (content, duration) => unit = "info"; [@bs.module "antd/lib/message"] -external warning: (content, duration) => unit = ""; +external warning: (content, duration) => unit = "warning"; [@bs.module "antd/lib/message"] -external warn: (content, duration) => unit = ""; +external warn: (content, duration) => unit = "warn"; [@bs.module "antd/lib/message"] -external loading: (content, duration) => unit = ""; -[@bs.module "antd/lib/message"] external config: options => unit = ""; -[@bs.module "antd/lib/message"] external destroy: unit => unit = ""; +external loading: (content, duration) => unit = "loading"; +[@bs.module "antd/lib/message"] external config: options => unit = "config"; +[@bs.module "antd/lib/message"] external destroy: unit => unit = "destroy"; type props = (content, duration); diff --git a/src/Antd_Modal.re b/src/Antd_Modal.re index b06c22b..38cc591 100644 --- a/src/Antd_Modal.re +++ b/src/Antd_Modal.re @@ -138,11 +138,11 @@ type props = { "content": React.element, }; -[@bs.send] external info: (React.component('a), props) => unit = ""; -[@bs.send] external success: (React.component('a), props) => unit = ""; -[@bs.send] external error: (React.component('a), props) => unit = ""; -[@bs.send] external warning: (React.component('a), props) => unit = ""; -[@bs.send] external confirm: (React.component('a), props) => unit = ""; +[@bs.send] external info: (React.component('a), props) => unit = "info"; +[@bs.send] external success: (React.component('a), props) => unit = "success"; +[@bs.send] external error: (React.component('a), props) => unit = "error"; +[@bs.send] external warning: (React.component('a), props) => unit = "warning"; +[@bs.send] external confirm: (React.component('a), props) => unit = "confirm"; let info = props => info(reactComponent, props); let success = props => success(reactComponent, props); diff --git a/src/Antd_Notification.re b/src/Antd_Notification.re index 95b64f9..bf39916 100644 --- a/src/Antd_Notification.re +++ b/src/Antd_Notification.re @@ -18,14 +18,14 @@ type options = { "description": React.element, }; type key = string; -[@bs.module "antd/lib/notification"] external success: options => unit = ""; -[@bs.module "antd/lib/notification"] external error: options => unit = ""; -[@bs.module "antd/lib/notification"] external info: options => unit = ""; -[@bs.module "antd/lib/notification"] external warning: options => unit = ""; -[@bs.module "antd/lib/notification"] external warn: options => unit = ""; -[@bs.module "antd/lib/notification"] external close: key => unit = ""; -[@bs.module "antd/lib/notification"] external destroy: unit => unit = ""; -[@bs.module "antd/lib/notification"] external config: options => unit = ""; +[@bs.module "antd/lib/notification"] external success: options => unit = "success"; +[@bs.module "antd/lib/notification"] external error: options => unit = "error"; +[@bs.module "antd/lib/notification"] external info: options => unit = "info"; +[@bs.module "antd/lib/notification"] external warning: options => unit = "warning"; +[@bs.module "antd/lib/notification"] external warn: options => unit = "warn"; +[@bs.module "antd/lib/notification"] external close: key => unit = "close"; +[@bs.module "antd/lib/notification"] external destroy: unit => unit = "destroy"; +[@bs.module "antd/lib/notification"] external config: options => unit = "config"; let success = options => success(options); diff --git a/src/Antd_TimePicker.re b/src/Antd_TimePicker.re index 66d26bd..2904b88 100644 --- a/src/Antd_TimePicker.re +++ b/src/Antd_TimePicker.re @@ -41,7 +41,7 @@ external makeTimePickerProps: unit ) => _ = - ""; + "makeTimePickerProps"; [@bs.module] external reactComponent: React.component('a) = "antd/lib/time-picker";