- You can import these paths from both
require()
andimport()
. - To import these, your toolchains must support package.json's conditional exports.
Basic APIs are exported here:
option-t/maybe
option-t/maybe/namespace
(We don't recommend to use this without TypeScript due to it would be hard to follow future breaking changes.)
option-t/maybe/and
option-t/maybe/and_then
option-t/maybe/and_then_async
option-t/maybe/filter
option-t/maybe/filter_async
option-t/maybe/inspect
option-t/maybe/map
option-t/maybe/map_async
option-t/maybe/map_or
option-t/maybe/map_or_async
option-t/maybe/map_or_else
option-t/maybe/map_or_else_async
option-t/maybe/ok_or
option-t/maybe/ok_or_else
option-t/maybe/ok_or_else_async
option-t/maybe/or
option-t/maybe/or_else
option-t/maybe/or_else_async
option-t/maybe/to_nullable
option-t/maybe/to_plain_result
option-t/maybe/to_undefinable
option-t/maybe/unwrap_or
option-t/maybe/unwrap_or_else
option-t/maybe/unwrap_or_else_async
option-t/maybe/xor
option-t/maybe/zip
option-t/maybe/zip_with
option-t/maybe/zip_with_async
Basic APIs are exported here:
option-t/nullable
option-t/nullable/namespace
(We don't recommend to use this without TypeScript due to it would be hard to follow future breaking changes.)
option-t/nullable/and
option-t/nullable/and_then
option-t/nullable/and_then_async
option-t/nullable/filter
option-t/nullable/filter_async
option-t/nullable/inspect
option-t/nullable/map
option-t/nullable/map_async
option-t/nullable/map_or
option-t/nullable/map_or_async
option-t/nullable/map_or_else
option-t/nullable/map_or_else_async
option-t/nullable/ok_or
option-t/nullable/ok_or_else
option-t/nullable/ok_or_else_async
option-t/nullable/or
option-t/nullable/or_else
option-t/nullable/or_else_async
option-t/nullable/to_plain_result
option-t/nullable/to_undefinable
option-t/nullable/unwrap_or
option-t/nullable/unwrap_or_else
option-t/nullable/unwrap_or_else_async
option-t/nullable/xor
option-t/nullable/zip
option-t/nullable/zip_with
option-t/nullable/zip_with_async
Basic APIs are exported here:
option-t/plain_option
option-t/plain_option/namespace
(We don't recommend to use this without TypeScript due to it would be hard to follow future breaking changes.)
option-t/plain_option/and
option-t/plain_option/and_then
option-t/plain_option/and_then_async
option-t/plain_option/as_mut
option-t/plain_option/drop
option-t/plain_option/equal
option-t/plain_option/filter
option-t/plain_option/flatten
option-t/plain_option/from_result
option-t/plain_option/inspect
option-t/plain_option/map
option-t/plain_option/map_async
option-t/plain_option/map_or
option-t/plain_option/map_or_async
option-t/plain_option/map_or_else
option-t/plain_option/map_or_else_async
option-t/plain_option/ok_or
option-t/plain_option/ok_or_else
option-t/plain_option/or
option-t/plain_option/or_else
option-t/plain_option/or_else_async
option-t/plain_option/to_nullable
option-t/plain_option/to_undefinable
option-t/plain_option/transpose
option-t/plain_option/unwrap_or
option-t/plain_option/unwrap_or_else
option-t/plain_option/unwrap_or_else_async
option-t/plain_option/xor
Basic APIs are exported here:
option-t/plain_result
option-t/plain_result/namespace
(We don't recommend to use this without TypeScript due to it would be hard to follow future breaking changes.)
option-t/plain_result/and
option-t/plain_result/and_then
option-t/plain_result/and_then_async
option-t/plain_result/as_mut
option-t/plain_result/deprecated/try_catch_with_assert_error
(deprecated)option-t/plain_result/deprecated/try_catch_with_assert_error_async
(deprecated)option-t/plain_result/deprecated/unwrap_or_throw_error
(deprecated. Useoption-t/plain_result/unwrap_or_throw
instead.)option-t/plain_result/deprecated/unwrap_or_throw_unknown
(deprecated. Useoption-t/plain_result/unwrap_or_throw
instead.)option-t/plain_result/drop
option-t/plain_result/equal
option-t/plain_result/flatten
option-t/plain_result/from_promise_settled_result
option-t/plain_result/inspect
option-t/plain_result/is_err_and
option-t/plain_result/is_ok_and
option-t/plain_result/map
option-t/plain_result/map_async
option-t/plain_result/map_err
option-t/plain_result/map_err_async
option-t/plain_result/map_or
option-t/plain_result/map_or_async
option-t/plain_result/map_or_else
option-t/plain_result/map_or_else_async
option-t/plain_result/or
option-t/plain_result/or_else
option-t/plain_result/or_else_async
option-t/plain_result/to_nullable
option-t/plain_result/to_undefinable
option-t/plain_result/transpose
option-t/plain_result/try_catch
option-t/plain_result/try_catch_async
option-t/plain_result/unwrap_or
option-t/plain_result/unwrap_or_else
option-t/plain_result/unwrap_or_else_async
option-t/plain_result/unwrap_or_throw
Basic APIs are exported here:
option-t/undefinable
option-t/undefinable/namespace
(We don't recommend to use this without TypeScript due to it would be hard to follow future breaking changes.)
option-t/undefinable/and
option-t/undefinable/and_then
option-t/undefinable/and_then_async
option-t/undefinable/filter
option-t/undefinable/filter_async
option-t/undefinable/inspect
option-t/undefinable/map
option-t/undefinable/map_async
option-t/undefinable/map_or
option-t/undefinable/map_or_async
option-t/undefinable/map_or_else
option-t/undefinable/map_or_else_async
option-t/undefinable/ok_or
option-t/undefinable/ok_or_else
option-t/undefinable/ok_or_else_async
option-t/undefinable/or
option-t/undefinable/or_else
option-t/undefinable/or_else_async
option-t/undefinable/to_nullable
option-t/undefinable/to_plain_result
option-t/undefinable/unwrap_or
option-t/undefinable/unwrap_or_else
option-t/undefinable/unwrap_or_else_async
option-t/undefinable/xor
option-t/undefinable/zip
option-t/undefinable/zip_with
option-t/undefinable/zip_with_async