1. 首页
  2. 移动开发
  3. 其他
  4. fluent decoders:围绕nviedecoders的Fluent API包装器 源码

fluent decoders:围绕nviedecoders的Fluent API包装器 源码

上传者: 2021-04-07 00:22:50上传 ZIP文件 129.13KB 热度 35次
流利的解码器 fluent-decoders是围绕的Fluent风格的API包装。 注意:版本始终锁定为与上游decoders库相同的编号 例子 import { array , boolean , string , tuple3 } from "@tdreyno/fluent-decoders" interface Person { name : string age : string isActive : boolean } const toPerson = ( [ name , age , isActive ] ) : Person => ( { name , age , isActive } ) const containsInt = ( s : any ) : s is StringInt => ! isNaN ( parseInt ( s , 10 ) ) co
下载地址
用户评论