Last active
November 28, 2017 09:56
-
-
Save drejohnson/65f766fa1474883e3ede09c93f970579 to your computer and use it in GitHub Desktop.
basic fela.js bindings for reasonml
This file contains 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
type t; | |
[@bs.obj] | |
external renderer_options : | |
( | |
~plugins: array(t)=?, | |
~enhancers: array(t)=?, | |
~mediaQueryOrder: array(string)=?, | |
~supportQueryOrder: array(string)=?, | |
~selectorPrefix: string=?, | |
unit | |
) => | |
t = | |
""; | |
type renderStatic = {. "renderStatic": [@bs.meth] (unit => unit)}; | |
[@bs.module "fela"] external createRenderer : t => 'a = "createRenderer"; | |
[@bs.module "fela"] external createRendererStatic : t => renderStatic = "createRenderer"; | |
[@bs.module "fela-dom"] external renderToMarkup : unit => 'a = "renderToMarkup"; | |
module Plugins = { | |
[@bs.obj] external unit_config : (~unit_: string=?, ~unitPerProperty: Js.t({..})=?, unit) => t = | |
""; | |
[@bs.module "fela-plugin-extend"] external extend : t = "default"; | |
[@bs.module "fela-plugin-embedded"] external embedded : t = "default"; | |
[@bs.module "fela-plugin-prefixer"] external prefixer : t = "default"; | |
[@bs.module "fela-plugin-fallback-value"] external fallbackValue : t = "default"; | |
[@bs.module "fela-plugin-lvha"] external lvha : t = "default"; | |
[@bs.module "fela-plugin-unit"] external unit_ : t => 'a = "default"; | |
[@bs.module "fela-plugin-named-keys"] external namedKeys : Js.t({..}) => 'a = "default"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment