Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import { string } from 'jsonous';
  2.  
  3. const decoder = string();
  4.  
  5. decoder.decodeAny("foo"); // --> Ok("foo")
  6. decoder.decodeAnt(8); // --> Err("Expected to find a string. Instead found 8")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement