Comparing version 1.2.9 to 1.2.10
@@ -1,2 +0,2 @@ | ||
import { GenerateHighLevelErrorOpts, GenerateLowLevelErrorOpts, HighLevelErrorInternal, LowLevelErrorDef } from './interfaces'; | ||
import { GenerateHighLevelErrorOpts, GenerateLowLevelErrorOpts, HighLevelErrorInternal, LowLevelErrorInternal } from './interfaces'; | ||
/** | ||
@@ -7,3 +7,3 @@ * For a given set of error definitions, generate the className and code based on the property name. | ||
*/ | ||
export declare function generateHighLevelErrors<T extends HighLevelErrorInternal = HighLevelErrorInternal>(errorDefs: Record<string, Partial<T>>, opts?: GenerateHighLevelErrorOpts): Record<string, Partial<T>>; | ||
export declare function generateHighLevelErrors<HLError extends Record<keyof HLError, HLInternal>, HLInternal extends HighLevelErrorInternal>(errorDefs: Record<keyof HLError, Partial<HLInternal>>, opts?: GenerateHighLevelErrorOpts): HLError; | ||
/** | ||
@@ -13,2 +13,2 @@ * For a given set of error definitions, generate the subCode based on the property name. | ||
*/ | ||
export declare function generateLowLevelErrors<T extends LowLevelErrorDef = LowLevelErrorDef>(errorDefs: Record<string, Partial<T>>, opts?: GenerateLowLevelErrorOpts): Record<string, Partial<T>>; | ||
export declare function generateLowLevelErrors<LLErrorName extends Record<keyof LLErrorName, LLInternal>, LLInternal extends LowLevelErrorInternal>(errorDefs: Record<keyof LLErrorName, Partial<LLInternal>>, opts?: GenerateLowLevelErrorOpts): LLErrorName; |
@@ -0,1 +1,7 @@ | ||
## 1.2.10 - Fri Mar 12 2021 02:21:26 | ||
**Contributor:** Theo Gravity | ||
- Fix typescript error when using utility helpers with registry and calling newError | ||
## 1.2.9 - Tue Mar 09 2021 22:34:18 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "new-error", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "A production-grade error creation and serialization library designed for Typescript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92047