How to use the fp-ts-contrib/lib/TaskOption.chain function in fp-ts-contrib

To help you get started, we’ve selected a few fp-ts-contrib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SamHH / bukubrow-webext / src / modules / context.ts View on Github external
const handleCtxClick = (x: Menus.OnClickData): TaskOption> => pipe(
	x.menuItemId,
	O.fromPredicate(isContextMenuEntry),
	TO.fromOption,
	TO.chain(contextClickTabs(O.fromNullable(x.pageUrl))),
);