Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Election

import type { Election } from "https://googleapis.deno.dev/v1/civicinfo:v2.ts";

Information about the election that was queried.

interface Election {
electionDay?: string;
id?: bigint;
name?: string;
ocdDivisionId?: string;
shapeLookupBehavior?: "shapeLookupDefault" | "shapeLookupDisabled" | "shapeLookupEnabled";
}

§Properties

§
electionDay?: string
[src]

Day of the election in YYYY-MM-DD format.

§
id?: bigint
[src]

The unique ID of this election.

§
name?: string
[src]

A displayable name for the election.

§
ocdDivisionId?: string
[src]

The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us).

§
shapeLookupBehavior?: "shapeLookupDefault" | "shapeLookupDisabled" | "shapeLookupEnabled"
[src]