Added pool declaration for FieldsArray

This commit is contained in:
Alexander Cerutti
2019-12-10 22:11:40 +01:00
parent f642ddc444
commit 7ed8bf52aa

View File

@@ -11,6 +11,8 @@ const fieldsDebug = debug("passkit:fields");
const poolSymbol = Symbol("pool");
export default class FieldsArray extends Array {
private [poolSymbol]: Set<string>;
constructor(pool: Set<string>, ...args: any[]) {
super(...args);
this[poolSymbol] = pool;