Update index.d.ts (#47468)

`.publish()` 2nd argument is optional
This commit is contained in:
Clément P 2020-09-11 18:15:02 +02:00 committed by GitHub
parent 8e8834c4ce
commit 72b274eb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,9 @@ declare namespace PubSubJS {
}
interface Publish {
publish(message: string, data: any): boolean;
publish(message: string, data?: any): boolean;
publishSync(message: string, data: any): boolean;
publishSync(message: string, data?: any): boolean;
}
interface Subscribe {