Creates a schema for null values.
The null type represents the absence of a value. Encoding produces a single type byte with no additional content.
A Relish schema for null values
import { RNull, createCodec } from '@grounds/schema';const codec = createCodec(RNull());codec.encode(null).match( (bytes) => console.log('Null encoded:', bytes), (error) => console.error(error)); Copy
import { RNull, createCodec } from '@grounds/schema';const codec = createCodec(RNull());codec.encode(null).match( (bytes) => console.log('Null encoded:', bytes), (error) => console.error(error));
Creates a schema for null values.
The null type represents the absence of a value. Encoding produces a single type byte with no additional content.