From efa6cf98d2d16487ae0e1f4139d8575d911008b1 Mon Sep 17 00:00:00 2001 From: stefanfuchs Date: Sun, 11 Jul 2021 21:54:32 -0300 Subject: [PATCH] fix: location class type (#718) --- index.d.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index bc89809..156a3db 100644 --- a/index.d.ts +++ b/index.d.ts @@ -600,10 +600,13 @@ declare namespace WAWebJS { _serialized: string, } - export interface Location { - description?: string | null, - latitude: string, - longitude: string, + /** Location information */ + export class Location { + description?: string | null + latitude: string + longitude: string + + constructor(latitude: number, longitude: number, description?: string) } export interface Label {