From 8028fa86e3fbf43d9112ff6fe8227070858a4002 Mon Sep 17 00:00:00 2001 From: Chin Godawita Date: Thu, 22 Jul 2021 16:21:19 +1000 Subject: [PATCH] Fix type definition for `Mali.addService` The `name` parameter in the `Mali.addService` method is optional, this updates the type definition to match the code. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 578a1e8..25d2d83 100644 --- a/index.d.ts +++ b/index.d.ts @@ -25,7 +25,7 @@ declare class Mali extends EventEmitter implements App { silent: boolean; context: T - addService (path: any, name: string | ReadonlyArray, options?: any): void; + addService (path: any, name?: string | ReadonlyArray, options?: any): void; use (service?: any, name?: any, fns?: any): void; start (port: number | string, creds?: any, options?: any): Promise; toJSON (): any;