Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { string } from 'jsonous';
- const decoder = string();
- decoder.decodeAny("foo"); // --> Ok("foo")
- decoder.decodeAnt(8); // --> Err("Expected to find a string. Instead found 8")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement