mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Added pool declaration for FieldsArray
This commit is contained in:
@@ -11,6 +11,8 @@ const fieldsDebug = debug("passkit:fields");
|
|||||||
const poolSymbol = Symbol("pool");
|
const poolSymbol = Symbol("pool");
|
||||||
|
|
||||||
export default class FieldsArray extends Array {
|
export default class FieldsArray extends Array {
|
||||||
|
private [poolSymbol]: Set<string>;
|
||||||
|
|
||||||
constructor(pool: Set<string>, ...args: any[]) {
|
constructor(pool: Set<string>, ...args: any[]) {
|
||||||
super(...args);
|
super(...args);
|
||||||
this[poolSymbol] = pool;
|
this[poolSymbol] = pool;
|
||||||
|
|||||||
Reference in New Issue
Block a user