@internetarchive/result-type
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1
{ | ||
"name": "@internetarchive/result-type", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1", | ||
"description": "A generic Result interface for returning type-safe responses and errors.", | ||
@@ -5,0 +5,0 @@ "author": "Internet Archive", |
@@ -30,4 +30,4 @@ [![Build Status](https://github.com/internetarchive/iaux-result-type/actions/workflows/ci.yml/badge.svg?branch=main)) [![codecov](https://codecov.io/gh/internetarchive/iaux-result-type/branch/master/graph/badge.svg)](https://codecov.io/gh/internetarchive/iaux-result-type) | ||
constructor(type: FooErrorType) { | ||
super(); | ||
constructor(type: FooErrorType, message: string?) { | ||
super(message); | ||
this.type = type; | ||
@@ -34,0 +34,0 @@ } |
50993