From d43c0cbe684e01236b5010c5da693207e132ad8c Mon Sep 17 00:00:00 2001 From: David Sveningsson Date: Sun, 3 Nov 2024 18:38:35 +0100 Subject: [PATCH] fix: `motdProcessor` options is optional --- etc/index.api.md | 2 +- src/processors/motd-processor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/index.api.md b/etc/index.api.md index a0d994bd4..6a09c37ea 100644 --- a/etc/index.api.md +++ b/etc/index.api.md @@ -174,7 +174,7 @@ export interface MOTDOptions { } // @public -export function motdProcessor(options: MOTDOptions): Processor; +export function motdProcessor(options?: MOTDOptions): Processor; // @public export function navigationFileReader(filePath: string, basePath?: string): Promise; diff --git a/src/processors/motd-processor.ts b/src/processors/motd-processor.ts index a8f4c596e..14adcfaf1 100644 --- a/src/processors/motd-processor.ts +++ b/src/processors/motd-processor.ts @@ -42,7 +42,7 @@ function normalizeOptions(options: MOTDOptions): NormalizedMOTDOptions { * * @public */ -export function motdProcessor(options: MOTDOptions): Processor { +export function motdProcessor(options: MOTDOptions = {}): Processor { const { enabled, container, message } = normalizeOptions(options); return { name: "motd-processor",