UNPKG

@codeplaydata/datasus

Version:

This application decompress the datasus micro data and serve as a gateway class.

18 lines (17 loc) 632 B
import { Records } from "../../core/Records.js"; import { Criteria } from "./Criteria.js"; /** * Criteria that matches when a record's property value is contained in a list. */ export declare class ArrayCriteria<RecordType extends Records> implements Criteria<RecordType> { readonly array: string[]; readonly objProp: string; readonly name: string; /** * @param array Allowed values. * @param objProp Record property to compare. */ constructor(array: string[], objProp: string); /** Returns true if item[objProp] is included in the provided array. */ match(item: RecordType): boolean; }