project: Move to ESM Modules
This commit is contained in:
+5
-2
@@ -1,13 +1,16 @@
|
||||
import { Contact } from './Contact'
|
||||
import { Boom } from '@hapi/boom'
|
||||
import type { Contact } from './Contact'
|
||||
|
||||
export type WAConnectionState = 'open' | 'connecting' | 'close'
|
||||
|
||||
export type ConnectionState = {
|
||||
/** connection is now open, connecting or closed */
|
||||
connection: WAConnectionState
|
||||
|
||||
/** the error that caused the connection to close */
|
||||
lastDisconnect?: {
|
||||
error: Error | undefined
|
||||
// TODO: refactor and gain independence from Boom
|
||||
error: Boom | Error | undefined
|
||||
date: Date
|
||||
}
|
||||
/** is this a new login */
|
||||
|
||||
Reference in New Issue
Block a user