function OkRe-exportimport { Ok } from "https://deno.land/x/optionals@v3.0.0/mod.ts"; Ok<T, E extends Error>(input?: T)Return a non-error value result. ExamplesExample 1 function divide(left: number, right: number): Result<number, Error> { if (right === 0) return Err("Divided by zero"); return Ok(left / right); } Example 2 const foo = Ok("Foo!"); if (foo instanceof Ok) { // Do something } Type ParametersTE extends ErrorParametersoptionalinput: Ta value that does not extend the Error type.