UNPKG

@codeplaydata/datasus

Version:

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

18 lines (17 loc) 622 B
import { Records } from "../../core/Records.js"; import { Criteria } from "./Criteria.js"; /** * Criteria that matches when a record's property equals an expected string. */ export declare class StringCriteria<RecordType extends Records> implements Criteria<RecordType> { readonly str: string; readonly objProp: string; readonly name: string; /** * @param str Expected value. * @param objProp Record property to compare. */ constructor(str: string, objProp: string); /** Returns true if item[objProp] strictly equals the expected string. */ match(item: RecordType): boolean; }