Creates a None variant of an Option, representing the absence of a value.
Produces an option indicating no value is present.
The type of the absent value.
An Option representing None.
const x = none<number>();expect(x.isNone()).toBe(true);expect(() => x.expect("x is `None`")).toThrow("x is `None`"); Copy
const x = none<number>();expect(x.isNone()).toBe(true);expect(() => x.expect("x is `None`")).toThrow("x is `None`");
Creates a None variant of an Option, representing the absence of a value.
Produces an option indicating no value is present.