From 6d82452d46deed9a88735e60f94353465ed05417 Mon Sep 17 00:00:00 2001 From: Ryan Ling Date: Mon, 9 Oct 2023 14:21:00 +1100 Subject: [PATCH] Placate linter --- src/serializers/index.ts | 2 +- src/serializers/omitPropertiesSerializer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serializers/index.ts b/src/serializers/index.ts index a04b222..f76701f 100644 --- a/src/serializers/index.ts +++ b/src/serializers/index.ts @@ -28,7 +28,7 @@ export interface SerializerOptions { * Defaults to `DEFAULT_OMIT_HEADER_NAMES`, * and can be disabled by supplying an empty array `[]`. */ - omitHeaderNames?: string[]; + omitHeaderNames?: readonly string[]; } interface Socket { diff --git a/src/serializers/omitPropertiesSerializer.ts b/src/serializers/omitPropertiesSerializer.ts index 5c4c7e2..a7bc734 100644 --- a/src/serializers/omitPropertiesSerializer.ts +++ b/src/serializers/omitPropertiesSerializer.ts @@ -5,7 +5,7 @@ export const createOmitPropertiesSerializer = ( /** * A list of properties that should not be logged. */ - properties: string[], + properties: readonly string[], ): SerializerFn => { const uniquePropertySet = new Set(properties);