gigobyte / purify

Functional programming library for TypeScript - https://gigobyte.github.io/purify/
ISC License
1.53k stars 59 forks source link

Request: export static methods as pure functions #733

Open mendrik opened 1 month ago

mendrik commented 1 month ago

I was wondering if we could get use liftMaybe() instead of MaybeAsync.liftMaybe() if there would be a shortened export

import { liftMaybe } from 'purify-ts/MaybeAsync'

same for all the either static functions like fromNullable, etc.

then I can also easily rename it import { liftMaybe as liftM } from 'purify-ts/MaybeAsync' and so on.

Not super important but would be nice to have convinience.