Skip to content

True MythReally safe types.

Safe, idiomatic null, error, and async code handling in TypeScript, with Maybe, Result, and Task types that are really nice.

True Myth provides standard, type-safe wrappers and helper functions to help you with three extremely common cases in programming:

  • not having a value
  • having a result where you need to deal with either success or failure
  • having an asynchronous operation which may fail

You could implement all of these yourself—but it's much better to just have one extremely well-tested library you can use everywhere to solve this problem once and for all.

Read the docs for more!