Comparing version 5.2.0 to 5.2.1
import { ErrorConstructors } from './ErrorConstructors'; | ||
declare const defekt: <TErrorDefinition extends { | ||
[key: string]: { | ||
code?: string | undefined; | ||
}; | ||
}>(errorDefinitions: TErrorDefinition) => ErrorConstructors<TErrorDefinition>; | ||
declare const defekt: <TErrorDefinition extends Record<string, { | ||
code?: string | undefined; | ||
}>>(errorDefinitions: TErrorDefinition) => ErrorConstructors<TErrorDefinition>; | ||
export { defekt }; |
@@ -0,1 +1,8 @@ | ||
## [5.2.1](https://github.com/thenativeweb/defekt/compare/5.2.0...5.2.1) (2020-10-28) | ||
### Bug Fixes | ||
* Update dependencies. ([#191](https://github.com/thenativeweb/defekt/issues/191)) ([ee3a227](https://github.com/thenativeweb/defekt/commit/ee3a227b5a627c844782f5a543e766c53cce496d)) | ||
# [5.2.0](https://github.com/thenativeweb/defekt/compare/5.1.0...5.2.0) (2020-10-13) | ||
@@ -2,0 +9,0 @@ |
@@ -5,5 +5,4 @@ import { CustomError } from './CustomError'; | ||
const defekt = function <TErrorDefinition extends { | ||
[ key: string ]: { code?: string }; | ||
}> (errorDefinitions: TErrorDefinition): ErrorConstructors<TErrorDefinition> { | ||
const defekt = function <TErrorDefinition extends Record<string, { code?: string }>> | ||
(errorDefinitions: TErrorDefinition): ErrorConstructors<TErrorDefinition> { | ||
const errors: Partial<ErrorConstructors<TErrorDefinition>> = {}; | ||
@@ -10,0 +9,0 @@ |
{ | ||
"name": "defekt", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "defekt is custom errors made simple.", | ||
@@ -30,4 +30,4 @@ "contributors": [ | ||
"assertthat": "5.2.1", | ||
"roboter": "11.3.12", | ||
"semantic-release-configuration": "1.0.21" | ||
"roboter": "11.4.3", | ||
"semantic-release-configuration": "1.0.23" | ||
}, | ||
@@ -34,0 +34,0 @@ "repository": { |
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
14613
179