1. 首页
  2. 移动开发
  3. 其他
  4. get_in_ppx 源码

get_in_ppx 源码

上传者: 2021-04-06 14:42:06上传 ZIP文件 69.99KB 热度 9次
get_in ppx 探索实现为ppx的 。 安装 npm i get_in_ppx bsconfig.json "ppx-flags": ["get_in_ppx/ppx"] 运营商 此ppx包含两个运算符,它们在[%get_in ]格式内有效。 #??当双方都是可选的时使用。例如,左侧的对象是可选的,而要获取的属性也是可选的。例如option({. "attr": option(int)}) #?仅当对象是可选的,而不是要获取的属性时才使用。例如option({. "attr": int}) 用法 /* some data with optional attributes in javascript objects (e.g. from graphql) */ let one = Some({"two": Some({"three": 4})}); let x: option(
下载地址
用户评论