-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b11e84
commit 1793a33
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/react-native-webview/src/ext-specs/NativeDdLogs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | ||
* This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
* Copyright 2016-Present Datadog, Inc. | ||
*/ | ||
|
||
/* eslint-disable @typescript-eslint/ban-types */ | ||
import type { TurboModule } from 'react-native'; | ||
import { TurboModuleRegistry } from 'react-native'; | ||
|
||
/** | ||
* Do not import this Spec directly, use DdNativeLogsType instead. | ||
*/ | ||
export interface Spec extends TurboModule { | ||
readonly getConstants: () => {}; | ||
/** | ||
* Send a log with ERROR level. | ||
* @param message: The message to send. | ||
* @param context: The additional context to send. | ||
*/ | ||
readonly error: (message: string, context: Object) => Promise<void>; | ||
} | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default TurboModuleRegistry.get<Spec>('DdLogs'); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters