File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ export interface Client<O extends Options = Options> {
60
60
/** Returns the current options. */
61
61
getOptions ( ) : O ;
62
62
63
- /** Returns clients transport. */
63
+ /**
64
+ * Returns the transport that is used by the client.
65
+ * Please note that the transport gets lazy initialized so it will only be there once the first event has been sent.
66
+ *
67
+ * @returns The transport.
68
+ */
64
69
getTransport ?( ) : Transport ;
65
70
66
71
/**
@@ -88,4 +93,17 @@ export interface Client<O extends Options = Options> {
88
93
89
94
/** This is an internal function to setup all integrations that should run on the client */
90
95
setupIntegrations ( ) : void ;
96
+
97
+ /** Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`. */
98
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
99
+ eventFromException ( exception : any , hint ?: EventHint ) : PromiseLike < Event > ;
100
+
101
+ /** Creates an {@link Event} from primitive inputs to `captureMessage`. */
102
+ eventFromMessage ( message : string , level ?: Severity , hint ?: EventHint ) : PromiseLike < Event > ;
103
+
104
+ /** Submits the event to Sentry */
105
+ sendEvent ( event : Event ) : void ;
106
+
107
+ /** Submits the session to Sentry */
108
+ sendSession ( session : Session ) : void ;
91
109
}
You can’t perform that action at this time.
0 commit comments