// @flow
import Awral from 'awral'
/**
 * `parseJSON()` adds property "ok"
 *  that identicates that response is OK
 *
 *  This func to determinates is response from API was successful or failed
 *
 * @param  {Object} result - response from API
 * @return {Boolean} - indicates was request successful or not
 */
const check = (result: Object = {ok: false}): boolean => result.ok
const beforeCheck = a => a
const afterCheck = a => a.data
// Create default Awral
export const awral = Awral.of({check, beforeCheck, afterCheck})

@@ -431,17 +431,20 @@
 a.data%0A/
-/
+**%0A 
  Create 
@@ -457,16 +457,166 @@
 t Awral%0A
+  Awral is my own tool.%0A  It's not well known, but it can make your work with actions even more simpler.%0A  %7B@link https://github.com/Metnew/awral%7D%0A*/%0A
 export c

add comment about Awral