From a1d9d320c939283757cb01b85eb27a97b11f2a6d Mon Sep 17 00:00:00 2001 From: Alex Vanderbist Date: Wed, 26 Jul 2023 14:39:09 +0200 Subject: [PATCH] Type updates --- resources/js/types.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/resources/js/types.ts b/resources/js/types.ts index 7decdfa0..10bade6c 100644 --- a/resources/js/types.ts +++ b/resources/js/types.ts @@ -34,7 +34,7 @@ export type IgnitionErrorOccurrence = { stacktrace: Array<{ line_number: number; method: string; - class: string; + class: string|null; code_snippet: Record; file: string; application_frame: boolean; @@ -52,9 +52,9 @@ export type IgnitionErrorOccurrence = { body: Record; files: Array; }; - headers: Record; + headers: Record; cookies: Record; - session: Record; + session: Record; route?: { route: string | null; routeParameters: Record; @@ -87,8 +87,8 @@ export type IgnitionErrorOccurrence = { git?: { hash: string; message: string; - tag: string; - remote: string; + tag: string|null; + remote: string|null; isDirty: boolean; }; livewire?: { @@ -104,12 +104,12 @@ export type IgnitionErrorOccurrence = { view: ViewContext | null; // Context attached to the exception or error via the `context()` method. - exception: Record | null; + exception?: Record | null; - job: Record | null; + job?: Record | null; /* @ts-ignore */ - arguments: Array | null; + arguments?: Array | null; // Additional context groups (added via Flare::group() and Flare::context) [key: string]: undefined | null | { @@ -122,4 +122,5 @@ export type IgnitionErrorOccurrence = { application_path: string; application_version: null | string; documentation_links: Array; + tracking_uuid?: string; };