@vltpkg/error-cause 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export type DuckTypeManifest = Record<string, any> & {
|
|
|
141
141
|
* Valid properties for the 'code' field in an Error cause.
|
|
142
142
|
* Add new options to this list as needed.
|
|
143
143
|
*/
|
|
144
|
-
export type Codes = 'EEXIST' | 'EINTEGRITY' | 'EINVAL' | 'ELIFECYCLE' | 'EMAXREDIRECT' | 'ENEEDAUTH' | 'ENOENT' | 'ENOGIT' | 'ERESOLVE' | 'EUNKNOWN' | 'EUSAGE' | 'EREQUEST' | 'ECONFIG' | 'ELOCKFILEVERSION';
|
|
144
|
+
export type Codes = 'EEXIST' | 'EINTEGRITY' | 'EINVAL' | 'ELIFECYCLE' | 'EMAXREDIRECT' | 'ENEEDAUTH' | 'ENOENT' | 'ENOGIT' | 'ERESOLVE' | 'EUNKNOWN' | 'EUSAGE' | 'EREQUEST' | 'ECONFIG' | 'ELOCKFILEVERSION' | 'EINVALIDNAME';
|
|
145
145
|
export type ErrorCtor<T extends Error> = new (message: string, options?: {
|
|
146
146
|
cause: Error | ErrorCauseOptions;
|
|
147
147
|
}) => T;
|