Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { maybe, nullable, optional, string } from 'decoders';
optional(string); // $ExpectType Decoder
optional(optional(string)); // $ExpectType Decoder
nullable(string); // $ExpectType Decoder
nullable(nullable(string)); // $ExpectType Decoder
maybe(string); // $ExpectType Decoder
maybe(maybe(string)); // $ExpectType Decoder
import { maybe, nullable, optional, string } from 'decoders';
optional(string); // $ExpectType Decoder
optional(optional(string)); // $ExpectType Decoder
nullable(string); // $ExpectType Decoder
nullable(nullable(string)); // $ExpectType Decoder
maybe(string); // $ExpectType Decoder
maybe(maybe(string)); // $ExpectType Decoder