Created
December 3, 2017 20:03
-
-
Save drejohnson/f9030e8c22f8694632a8c74f99f80bf1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Moment = { | |
type t; | |
[@bs.send.pipe : t] external format : string => string = ""; | |
[@bs.send.pipe : t] external utcOffset : string => t = ""; | |
}; | |
[@bs.module] external _moment : string => Moment.t = "moment"; | |
let moment = (value) => _moment(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment