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

noun1505 34 0 ZIP 2021-04-07 00:04:50

流利的解码器 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

用户评论
请输入评论内容
评分:
暂无评论