Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/src/base/event/breadcrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import type { JsonNode } from '../../utils/index.ts';
/**
* Breadcrumb severity level
*/
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug';
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug' | (string & {});
/**
* Breadcrumb type - controls categorization and UI appearance
* Common types suitable for both client and backend
*/
export type BreadcrumbType = 'default' | 'request' | 'ui' | 'navigation' | 'logic' | 'error';
export type BreadcrumbType = 'default' | 'request' | 'ui' | 'navigation' | 'logic' | 'error' | (string & {});
/**
* Single breadcrumb entry - represents an event that occurred before the error
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hawk.so/types",
"version": "0.5.7",
"version": "0.5.8",
"description": "TypeScript definitions for Hawk",
"types": "build/index.d.ts",
"main": "build/index.js",
Expand Down
5 changes: 3 additions & 2 deletions src/base/event/breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { JsonNode } from '../../utils/index.ts';
/**
* Breadcrumb severity level
*/
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug';
export type BreadcrumbLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug' | (string & {});

/**
* Breadcrumb type - controls categorization and UI appearance
Expand All @@ -15,7 +15,8 @@ export type BreadcrumbType =
| 'ui' // click, mousemove, scroll, etc
| 'navigation' // page open, route change, etc
| 'logic' // gql resolvers, internal methods calls, etc
| 'error'; // errors, exceptions, etc
| 'error' // errors, exceptions, etc
| (string & {}); // allow any custom type from SDK users

/**
* Single breadcrumb entry - represents an event that occurred before the error
Expand Down