@degel_lc/logger 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,18 +55,19 @@ interface LogTypeConfig {
|
|
|
55
55
|
/**
|
|
56
56
|
* Sentryモジュールの型
|
|
57
57
|
* @sentry/node と @sentry/nextjs の両方で使用可能
|
|
58
|
+
* メソッド構文を使用して双変(bivariant)にし、型互換性を確保
|
|
58
59
|
*/
|
|
59
60
|
interface SentryModule {
|
|
60
61
|
/**
|
|
61
62
|
* 例外をSentryに送信
|
|
62
63
|
*/
|
|
63
|
-
captureException
|
|
64
|
+
captureException(error: unknown, hint?: {
|
|
64
65
|
extra?: Record<string, unknown>;
|
|
65
|
-
})
|
|
66
|
+
}): string;
|
|
66
67
|
/**
|
|
67
68
|
* メッセージをSentryに送信
|
|
68
69
|
*/
|
|
69
|
-
captureMessage
|
|
70
|
+
captureMessage(message: string, captureContext?: unknown): string;
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
73
|
* ロガー設定オプション
|