Skip to content

Commit

Permalink
Remove external's = "" shorthand
Browse files Browse the repository at this point in the history
It's deprecated and discouraged
  • Loading branch information
chenglou committed Jun 12, 2019
1 parent 2cccb02 commit 2ae09af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/React.re
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ type componentLike('props, 'return) = 'props => 'return;
type component('props) = componentLike('props, element);

[@bs.module "react"]
external createElement: (component('props), 'props) => element = "";
external createElement: (component('props), 'props) => element = "createElement";

[@bs.module "react"]
external cloneElement: (component('props), 'props) => element = "";
external cloneElement: (component('props), 'props) => element = "cloneElement";

[@bs.splice] [@bs.module "react"]
external createElementVariadic:
Expand All @@ -28,7 +28,7 @@ module Ref = {
[@bs.set] external setCurrent: (t('value), 'value) => unit = "current";
};

[@bs.module "react"] external createRef: unit => Ref.t(Js.nullable('a)) = "";
[@bs.module "react"] external createRef: unit => Ref.t(Js.nullable('a)) = "createRef";

module Children = {
[@bs.module "react"] [@bs.scope "Children"] [@bs.val]
Expand Down Expand Up @@ -57,7 +57,7 @@ module Context = {
"Provider";
};

[@bs.module "react"] external createContext: 'a => Context.t('a) = "";
[@bs.module "react"] external createContext: 'a => Context.t('a) = "createContext";

[@bs.module "react"]
external forwardRef:
Expand All @@ -66,7 +66,7 @@ external forwardRef:
"";

[@bs.module "react"]
external memo: component('props) => component('props) = "";
external memo: component('props) => component('props) = "memo";

[@bs.module "react"]
external memoCustomCompareProps:
Expand Down Expand Up @@ -304,9 +304,9 @@ external useCallback7:
callback('input, 'output) =
"useCallback";

[@bs.module "react"] external useContext: Context.t('any) => 'any = "";
[@bs.module "react"] external useContext: Context.t('any) => 'any = "useContext";

[@bs.module "react"] external useRef: 'value => Ref.t('value) = "";
[@bs.module "react"] external useRef: 'value => Ref.t('value) = "useRef";

[@bs.module "react"]
external useImperativeHandle0:
Expand Down

0 comments on commit 2ae09af

Please # to comment.