better-custom-error
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -6,2 +6,6 @@ All notable changes to this project will be documented in this file. | ||
## [4.0.5] - 2021-05-30 | ||
### Added | ||
- CustomError type export | ||
## [4.0.4] - 2021-05-27 | ||
@@ -8,0 +12,0 @@ ### Fixed |
@@ -1,5 +0,6 @@ | ||
import type { Options, CustomErrorConstructor } from "./types"; | ||
import type { Options, CustomErrorConstructor, CustomError as CustomErrorType } from "./types"; | ||
declare const setDefaultOptions: (options: Options) => void; | ||
declare const createError: (name: string, ParentError?: ErrorConstructor, options?: Options | undefined) => CustomErrorConstructor; | ||
export { createError, setDefaultOptions, }; | ||
export type { CustomErrorType as CustomError, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
window.searchData = {"kinds":{"64":"Function"},"rows":[{"id":0,"kind":64,"name":"createError","url":"modules.html#createerror","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"setDefaultOptions","url":"modules.html#setdefaultoptions","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,6.931]],["parent/0",[]],["name/1",[1,6.931]],["parent/1",[]]],"invertedIndex":[["createerror",{"_index":0,"name":{"0":{}},"parent":{}}],["setdefaultoptions",{"_index":1,"name":{"1":{}},"parent":{}}]],"pipeline":[]}} | ||
window.searchData = {"kinds":{"64":"Function","256":"Interface","1024":"Property"},"rows":[{"id":0,"kind":64,"name":"createError","url":"modules.html#createerror","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"setDefaultOptions","url":"modules.html#setdefaultoptions","classes":"tsd-kind-function"},{"id":2,"kind":256,"name":"CustomError","url":"interfaces/customerror.html","classes":"tsd-kind-interface"},{"id":3,"kind":1024,"name":"names","url":"interfaces/customerror.html#names","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CustomError"},{"id":4,"kind":1024,"name":"details","url":"interfaces/customerror.html#details","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CustomError"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,13.863]],["parent/0",[]],["name/1",[1,13.863]],["parent/1",[]],["name/2",[2,5.39]],["parent/2",[]],["name/3",[3,13.863]],["parent/3",[2,0.334]],["name/4",[4,13.863]],["parent/4",[2,0.334]]],"invertedIndex":[["createerror",{"_index":0,"name":{"0":{}},"parent":{}}],["customerror",{"_index":2,"name":{"2":{}},"parent":{"3":{},"4":{}}}],["details",{"_index":4,"name":{"4":{}},"parent":{}}],["names",{"_index":3,"name":{"3":{}},"parent":{}}],["setdefaultoptions",{"_index":1,"name":{"1":{}},"parent":{}}]],"pipeline":[]}} |
@@ -1,5 +0,6 @@ | ||
import type { Options, CustomErrorConstructor } from "./types"; | ||
import type { Options, CustomErrorConstructor, CustomError as CustomErrorType } from "./types"; | ||
declare const setDefaultOptions: (options: Options) => void; | ||
declare const createError: (name: string, ParentError?: ErrorConstructor, options?: Options | undefined) => CustomErrorConstructor; | ||
export { createError, setDefaultOptions, }; | ||
export type { CustomErrorType as CustomError, }; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "better-custom-error", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"repository": "git@github.com:dzek69/better-custom-error.git", | ||
@@ -5,0 +5,0 @@ "author": "Jacek Nowacki @dzek69 <git-public@dzek.eu>", |
@@ -9,3 +9,3 @@ import { | ||
} from "./utils/index.js"; | ||
import type { Arg, Options, CustomErrorConstructor } from "./types"; | ||
import type { Arg, Options, CustomErrorConstructor, CustomError as CustomErrorType } from "./types"; | ||
@@ -116,1 +116,5 @@ const defaultOptions: Options = { | ||
}; | ||
export type { | ||
CustomErrorType as CustomError, | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
359479
73
4127