Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: no BS_NESTED_SOME_NONE when literal none passed to AsyncResult #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JUSTIVE
Copy link

@JUSTIVE JUSTIVE commented Mar 16, 2024

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();

@radiosilence
Copy link

Where has the dev gone? No new commits in 3 years :S§

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AR.toOption for undefined promise resolutions resulting in { BS_PRIVATE_NESTED_SOME_NONE: 0 }
2 participants