Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge branch 'update/rescript-10' of github.com:bloom/bs-ant-design i…
Browse files Browse the repository at this point in the history
…nto update/to-upstream
  • Loading branch information
dchymko committed Feb 16, 2023
2 parents 2da7558 + 500ded7 commit e3dd7e8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"antd": "3.17.0",
"bs-moment": "^0.4.4",
"bs-moment": "^0.8.0",
"re-classnames": "^4.0.0"
}
}
}
16 changes: 8 additions & 8 deletions src/Antd_Message.re
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
10 changes: 5 additions & 5 deletions src/Antd_Modal.re
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
16 changes: 8 additions & 8 deletions src/Antd_Notification.re
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/Antd_TimePicker.re
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ external makeTimePickerProps:
unit
) =>
_ =
"";
"makeTimePickerProps";

[@bs.module]
external reactComponent: React.component('a) = "antd/lib/time-picker";
Expand Down

0 comments on commit e3dd7e8

Please sign in to comment.