Kit
Type aliases

None

None = Readonly<{ __option: "None"; }>

Represents an Option that contains no value.

This type mirrors Rust’s None, indicating the absence of a value.

For more details, see Option.

Example

Creating a None value.

const empty = none();
isNone(empty); // true
isSome(empty); // false

See

On this page