Skip to content

Commit

Permalink
fix: motdProcessor options is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ext committed Nov 4, 2024
1 parent 53dde23 commit d43c0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/index.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Document_2[]>;
Expand Down
2 changes: 1 addition & 1 deletion src/processors/motd-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d43c0cb

Please sign in to comment.