diff --git a/types/index.d.ts b/types/index.d.ts index 60b6c26..1718a16 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -45,7 +45,9 @@ interface Connection { * Connection.CELL * Connection.NONE */ - type: string; + type: ConnectionType; + dispatchEvent(): boolean; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } @@ -59,4 +61,4 @@ declare var Connection: { CELL_4G: string; CELL: string; NONE: string; -} \ No newline at end of file +}