From 53e2c83f8675823829950a543e9d717669565c09 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 7 Dec 2021 13:53:28 +0100 Subject: [PATCH] add meta property to AbstractType --- src/types/AbstractType.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types/AbstractType.js b/src/types/AbstractType.js index 2f01dc14..9e1a877c 100644 --- a/src/types/AbstractType.js +++ b/src/types/AbstractType.js @@ -197,6 +197,13 @@ export class AbstractType { * @type {null | Array} */ this._searchMarker = null + /** + * You can store custom stuff here. + * This might be useful to associate your application state to this shared type. + * + * @type {Map} + */ + this.meta = new Map() } /**