ts-belt icon indicating copy to clipboard operation
ts-belt copied to clipboard

fix: no BS_NESTED_SOME_NONE when literal none passed to AsyncResult

Open JUSTIVE opened this issue 3 months ago • 0 comments

resolves #96

image

passes following code.

const toOptionTest = async () => {
  const option = await pipe(AR.resolve(undefined), AR.toOption);

  console.log('option is:', option);

  O.match(
    option,
    () => {
      console.log('option is `Some`');
    },
    () => {
      console.log('option is `None`');
    },
  );

  return option;
};

void toOptionTest();

JUSTIVE avatar Mar 16 '24 16:03 JUSTIVE