From dc3e4da92ae1213552c89c8ffc68f56b453faaf9 Mon Sep 17 00:00:00 2001 From: cindy-peng Date: Mon, 22 Jan 2024 13:43:39 -0800 Subject: [PATCH] feat: export LogSeverity for type enforcement --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 23b5d3ae..af30f7e6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ const version = require('../../package.json').version; // eslint-disable-next-line @typescript-eslint/no-var-requires const v2 = require('./v2'); -import {Entry, LogEntry} from './entry'; +import {Entry, LogEntry, LogSeverity} from './entry'; import { MonitoredResource, Severity, @@ -1522,6 +1522,7 @@ export {Log}; */ export {Severity}; export {SeverityNames}; +export {LogSeverity}; export {assignSeverityToEntries}; export {formatLogName};