ts.data.json - v4.4.0
    Preparing search index...

    Variable nullConst

    null: () => Decoder<null> = nullValue

    Type Declaration

      • (): Decoder<null>
      • Decoder for null values.

        Returns Decoder<null>

        A decoder that only accepts null values

        const nullDecoder = JsonDecoder.nullValue();
        nullDecoder.decode(null); // Ok<null>({value: null})
        nullDecoder.decode(123); // Err({ issues: [{ message: '123 is not null', path: [] }] })
        nullDecoder.decode(undefined); // Err({ issues: [{ message: 'undefined is not null', path: [] }] })

    Use nullValue instead. Removed in 5.0.0.