@@ -136,6 +136,8 @@ export function isEvent(wat: unknown): wat is PolymorphicEvent {
136136 *
137137 * @param wat A value to be checked.
138138 * @returns A boolean representing the result.
139+ * @deprecated This is browser-specific and will be removed from `@sentry/core` in a future major version.
140+ * Import `isElement` from `@sentry-internal/browser-utils` instead.
139141 */
140142export function isElement ( wat : unknown ) : boolean {
141143 return typeof Element !== 'undefined' && isInstanceOf ( wat , Element ) ;
@@ -162,11 +164,13 @@ export function isThenable(wat: any): wat is PromiseLike<any> {
162164}
163165
164166/**
165- * Checks whether given value's type is a SyntheticEvent
167+ * Checks whether given value's type is a React SyntheticEvent
166168 * {@link isSyntheticEvent}.
167169 *
168170 * @param wat A value to be checked.
169171 * @returns A boolean representing the result.
172+ * @deprecated This is React-specific and will be removed from `@sentry/core` in a future major version.
173+ * Use the equivalent helper that ships with `@sentry/react` instead.
170174 */
171175export function isSyntheticEvent ( wat : unknown ) : boolean {
172176 return isPlainObject ( wat ) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat ;
@@ -195,6 +199,8 @@ export function isInstanceOf<T>(wat: any, base: any): wat is T {
195199 *
196200 * @param wat A value to be checked.
197201 * @returns A boolean representing the result.
202+ * @deprecated This is Vue-specific and will be removed from `@sentry/core` in a future major version.
203+ * Use the equivalent helper that ships with `@sentry/vue` instead.
198204 */
199205export function isVueViewModel ( wat : unknown ) : wat is VueViewModel | VNode {
200206 // Not using Object.prototype.toString because in Vue 3 it would read the instance's Symbol(Symbol.toStringTag) property.
0 commit comments