File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- import { ErrorInfo } from "./data/ErrorInfo.js" ;
1
+ import {
2
+ ErrorInfo ,
3
+ SimpleError
4
+ } from "./data/ErrorInfo.js" ;
2
5
import { EnvironmentInfo } from "./data/EnvironmentInfo.js" ;
3
6
import { RequestInfo } from "./data/RequestInfo.js" ;
4
7
import { UserInfo } from "./data/UserInfo.js" ;
@@ -44,7 +47,7 @@ export const enum KnownEventDataKeys {
44
47
45
48
interface IData extends Record < string , any > {
46
49
"@error" ?: ErrorInfo ;
47
- "@simple_error" ?: any ; // TODO: Need a model for simple error
50
+ "@simple_error" ?: SimpleError ;
48
51
"@request" ?: RequestInfo ;
49
52
"@environment" ?: EnvironmentInfo ;
50
53
"@user" ?: UserInfo ;
Original file line number Diff line number Diff line change 1
1
import { ModuleInfo } from "./ModuleInfo.js" ;
2
2
3
+ export interface SimpleError {
4
+ message ?: string ;
5
+ type ?: string ;
6
+ stack_trace ?: string ;
7
+ data ?: any ;
8
+ inner ?: SimpleError ;
9
+ }
10
+
3
11
export interface InnerErrorInfo {
4
12
message ?: string ;
5
13
type ?: string ;
You can’t perform that action at this time.
0 commit comments