fix(docs):Docs and Exports
- Add documentation for recently released changes - Update some exports to include enums
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
import { LogLevel as LogLevelEnum, LoggerEnvironment as LoggerEnvironmentEnum } from "./constants";
|
||||
import { LogLevel as LogLevelEnum, LoggerEnvironment as LoggerEnvironmentEnum } from './constants';
|
||||
|
||||
/**
|
||||
* Severity threshold for log filtering, ordered from most to least verbose.
|
||||
@@ -70,7 +70,7 @@ export interface LogCallOptions {
|
||||
*/
|
||||
export interface LogEvent {
|
||||
/** Severity of this event. Never `silent`. */
|
||||
level: Exclude<LogLevel, "silent">;
|
||||
level: Exclude<LogLevel, 'silent'>;
|
||||
/**
|
||||
* Colon-joined namespace for this logger (e.g. `"WIDGET:Button"`).
|
||||
* Omitted when the logger was created without a namespace.
|
||||
@@ -165,7 +165,7 @@ export interface LoggerOptions {
|
||||
* Runtime used for the default destination policy (console vs Sentry-only
|
||||
* in production browsers). Inferred from `globalThis.window` when omitted.
|
||||
*/
|
||||
runtime?: "browser" | "node";
|
||||
runtime?: 'browser' | 'node';
|
||||
/**
|
||||
* Hard level override. Takes precedence over session storage, env vars,
|
||||
* and environment defaults.
|
||||
@@ -178,7 +178,7 @@ export interface LoggerOptions {
|
||||
* Expected value format matches {@link parseLoggingOverride}:
|
||||
* `debug` or `debug:WIDGET,API`.
|
||||
*/
|
||||
sessionStorage?: Pick<Storage, "getItem">;
|
||||
sessionStorage?: Pick<Storage, 'getItem'>;
|
||||
/**
|
||||
* Node/container environment variable map. Defaults to `process.env`
|
||||
* when available.
|
||||
|
||||
Reference in New Issue
Block a user