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