Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 234 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 234 Bytes

result-enum

Copy from https://github.com/OliverBrotchie/optionals

import { async } from '@washanhanzi/result-enum'

const results = await async(asyncFn)
if (result.isErr()){
	throw result.unwrapErr()
}
result.unwrap()