@plyaz/types 1.7.13 → 1.7.15
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/errors/types.d.ts +8 -0
- package/dist/logger/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/errors/types.d.ts
CHANGED
|
@@ -62,3 +62,11 @@ export interface ValidationErrorResponse {
|
|
|
62
62
|
message: string;
|
|
63
63
|
timestamp: string;
|
|
64
64
|
}
|
|
65
|
+
export interface BaseErrorResponse {
|
|
66
|
+
/** Category of the error. */
|
|
67
|
+
type: 'form' | 'auth' | 'server' | 'network' | 'runtime';
|
|
68
|
+
/** Human-readable error message. */
|
|
69
|
+
message: string;
|
|
70
|
+
/** ISO timestamp when the error occurred. */
|
|
71
|
+
timestamp: string;
|
|
72
|
+
}
|
package/dist/logger/types.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export interface LoggerInterface {
|
|
|
5
5
|
error(message: string, ...supportingDetials: unknown[]): void;
|
|
6
6
|
fatal(message: string, ...supportingDetials: unknown[]): void;
|
|
7
7
|
}
|
|
8
|
+
export type LoggerMethodTypes = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
9
|
+
export type LoggerEnvironment = 'development' | 'production';
|
package/package.json
CHANGED