Skip to content

Commit

Permalink
Fix type definition for Mali.addService
Browse files Browse the repository at this point in the history
The `name` parameter in the `Mali.addService` method is optional, this
updates the type definition to match the code.
chinthakagodawita authored and anonrig committed Jul 22, 2021
1 parent b03c1b7 commit 8028fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ declare class Mali<T> extends EventEmitter implements App<T> {
silent: boolean;
context: T

addService (path: any, name: string | ReadonlyArray<string>, options?: any): void;
addService (path: any, name?: string | ReadonlyArray<string>, options?: any): void;
use (service?: any, name?: any, fns?: any): void;
start (port: number | string, creds?: any, options?: any): Promise<grpc.Server>;
toJSON (): any;

0 comments on commit 8028fa8

Please sign in to comment.