UNPKG

concepts-parser

Version:
22 lines (21 loc) 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const filters_1 = require("./filters"); class Concepts { constructor(context) { this.list = []; this.context = context; } add(concept) { if (concept.isValid()) { this.list.push(concept); } } all() { return this.list; } filter(options) { return filters_1.filter(this.all(), this.context, options); } } exports.Concepts = Concepts;