diff --git a/package-lock.json b/package-lock.json index 5aba0cb..31914f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "type-safe-errors", - "version": "0.2.7", + "version": "0.2.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "type-safe-errors", - "version": "0.2.7", + "version": "0.2.8", "license": "MIT", "devDependencies": { "@types/chai": "^4.3.1", diff --git a/package.json b/package.json index c4e0360..6b273ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "type-safe-errors", - "version": "0.2.7", + "version": "0.2.8", "description": "Simple type-safe errors for TypeScript", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/result.ts b/src/result.ts index 4b2aab6..70f3030 100644 --- a/src/result.ts +++ b/src/result.ts @@ -35,7 +35,7 @@ const Result: ResultNamespace = { return { isError: false, value: values }; }); - return commonResultFactory(resultPromise); + return commonResultFactory(resultPromise) as any; }, };