Created
April 6, 2016 14:06
-
-
Save gaspard/99c0d157131c63961aa583759df5636f 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
import { Context, Renderable, RenderText } from '../types' | |
export const render = function | |
( ctx : Context | |
, sub1 : Renderable<RenderText> | |
, sub2 : Renderable<RenderText> | |
) : RenderText { | |
const res1 = sub1 ( ctx ).text | |
const res2 = sub2 ( ctx ).text | |
return { text: `${res1} ${res2}` } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment