How to use the @glennsl/bs-json/src/Json_decode.bs.js.$$int function in @glennsl/bs-json

To help you get started, we’ve selected a few @glennsl/bs-json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phated / mxdbmobile / src / card / Stat.js View on Github external
return Json_decode.map(fromRecord, (function (json) {
                return /* record */[
                        /* type_ */Json_decode.field("type", Json_decode.string, json),
                        /* rank */Json_decode.field("rank", Json_decode.$$int, json)
                      ];
              }), json);
}
github glennsl / refetch / examples / github.bs.js View on Github external
function repo(json) {
  return /* record */[
          /* name */Json_decode.field("name", Json_decode.string, json),
          /* description */Json_decode.field("description", (function (param) {
                  return Json_decode.optional(Json_decode.string, param);
                }), json),
          /* stars */Json_decode.field("stargazers_count", Json_decode.$$int, json),
          /* forks */Json_decode.field("forks_count", Json_decode.$$int, json),
          /* openIssues */Json_decode.field("open_issues_count", Json_decode.$$int, json)
        ];
}
github glennsl / refetch / examples / github.bs.js View on Github external
function repo(json) {
  return /* record */[
          /* name */Json_decode.field("name", Json_decode.string, json),
          /* description */Json_decode.field("description", (function (param) {
                  return Json_decode.optional(Json_decode.string, param);
                }), json),
          /* stars */Json_decode.field("stargazers_count", Json_decode.$$int, json),
          /* forks */Json_decode.field("forks_count", Json_decode.$$int, json),
          /* openIssues */Json_decode.field("open_issues_count", Json_decode.$$int, json)
        ];
}