@hawk.so/types 0.5.7 → 0.5.8
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.
|
@@ -2,12 +2,12 @@ import type { JsonNode } from '../../utils/index.ts';
|
|
|
2
2
|
/**
|
|
3
3
|
* Breadcrumb severity level
|
|
4
4
|
*/
|
|
5
|
-
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug';
|
|
5
|
+
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug' | (string & {});
|
|
6
6
|
/**
|
|
7
7
|
* Breadcrumb type - controls categorization and UI appearance
|
|
8
8
|
* Common types suitable for both client and backend
|
|
9
9
|
*/
|
|
10
|
-
export type BreadcrumbType = 'default' | 'request' | 'ui' | 'navigation' | 'logic' | 'error';
|
|
10
|
+
export type BreadcrumbType = 'default' | 'request' | 'ui' | 'navigation' | 'logic' | 'error' | (string & {});
|
|
11
11
|
/**
|
|
12
12
|
* Single breadcrumb entry - represents an event that occurred before the error
|
|
13
13
|
*/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import type { JsonNode } from '../../utils/index.ts';
|
|
|
3
3
|
/**
|
|
4
4
|
* Breadcrumb severity level
|
|
5
5
|
*/
|
|
6
|
-
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug';
|
|
6
|
+
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug' | (string & {});
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Breadcrumb type - controls categorization and UI appearance
|
|
@@ -15,7 +15,8 @@ export type BreadcrumbType =
|
|
|
15
15
|
| 'ui' // click, mousemove, scroll, etc
|
|
16
16
|
| 'navigation' // page open, route change, etc
|
|
17
17
|
| 'logic' // gql resolvers, internal methods calls, etc
|
|
18
|
-
| 'error'
|
|
18
|
+
| 'error' // errors, exceptions, etc
|
|
19
|
+
| (string & {}); // allow any custom type from SDK users
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* Single breadcrumb entry - represents an event that occurred before the error
|