Filters responses from the ElectionTonight API, when available on an endpoint, using the ElectionTonightClient.filter method.

const filter = {
states: ['TX', 'Alabama', '03', 1, 'Calif.'],
maxDateTime: '2018-11-06T21:10:00-0600',
office: 'H',
summary: true,
};
interface QueryFilter {
    states: string[] | number[];
    maxDateTime: string;
    office: string;
    summary: boolean;
}

Properties

states: string[] | number[]

Edison state codes; FIPS, postal or AP state abbreviations; or names

maxDateTime: string

Max ISO datetime string

office: string

Edison office code

summary: boolean

Summary results or county-level

Generated using TypeDoc