mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 11:39:14 +00:00
22 lines
407 B
JavaScript
22 lines
407 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Represents a WhatsApp data structure
|
|
*/
|
|
class Base {
|
|
constructor(client) {
|
|
/**
|
|
* The client that instantiated this
|
|
* @readonly
|
|
*/
|
|
Object.defineProperty(this, 'client', { value: client });
|
|
}
|
|
|
|
_clone() {
|
|
return Object.assign(Object.create(this), this);
|
|
}
|
|
|
|
_patch(data) { return data; }
|
|
}
|
|
|
|
module.exports = Base; |