open-index/open-npm huggingface dataset:
npm package: @joelgrayson/result
Description: TypeScript type for success with data or error with message
Author: Joel Grayson
Latest version: 1.0.0

# @joelgrayson/result

### Types
* Result - error with message or success with data
* EmptyResult - error with message or success (no data)
* PResult - Result but wrapped in a Promise. Useful as the return type for async functions
* PEmptyResult


### Functions
* success(data) - for constructing a success object with that data
* error(message) - for constructing an error object with the provided error messages