Typing the Err generic of Result to be empty

0011100001/25/2023
Sorry if this is a basic Typescript question! Is it possible to type a function's output so that I can return Result.err() without any parameters? f.e.
function myFunction(): Result<true, ???> {
  if (condition)
    return Result.ok(true)
  else
    return Result.err()
}
AOAnswer Overflow1/25/2023
0011100001/25/2023
thanks šŸ’œ
AOAnswer Overflow1/25/2023