Skip to content

Commit

Permalink
Type updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Jul 26, 2023
1 parent 710b745 commit a1d9d32
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions resources/js/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type IgnitionErrorOccurrence = {
stacktrace: Array<{
line_number: number;
method: string;
class: string;
class: string|null;
code_snippet: Record<number, string>;
file: string;
application_frame: boolean;
Expand All @@ -52,9 +52,9 @@ export type IgnitionErrorOccurrence = {
body: Record<string, string>;
files: Array<any>;
};
headers: Record<string, string>;
headers: Record<string, string|number>;
cookies: Record<string, string | object | boolean>;
session: Record<string, string>;
session: Record<string, string|number>;
route?: {
route: string | null;
routeParameters: Record<string, number | string | null>;
Expand Down Expand Up @@ -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?: {
Expand All @@ -104,12 +104,12 @@ export type IgnitionErrorOccurrence = {
view: ViewContext | null;

// Context attached to the exception or error via the `context()` method.
exception: Record<string, any> | null;
exception?: Record<string, any> | null;

job: Record<string, any> | null;
job?: Record<string, any> | null;

/* @ts-ignore */
arguments: Array<string> | null;
arguments?: Array<string> | null;

// Additional context groups (added via Flare::group() and Flare::context)
[key: string]: undefined | null | {
Expand All @@ -122,4 +122,5 @@ export type IgnitionErrorOccurrence = {
application_path: string;
application_version: null | string;
documentation_links: Array<string>;
tracking_uuid?: string;
};

0 comments on commit a1d9d32

Please sign in to comment.