results_filters.ts view source
(params: Pick<URLSearchParams, "get">, options: ResultsFilterOptions, defaults: ResultsFilters): ResultsFilters import {decode_results_filters} from '@ryanatkn/syntax-highlighter-bench/results_filters.js'; Reads a selection from a query. Ids come back in the order of options,
each once.
params
the query, which may hold anything
Pick<URLSearchParams, "get">options
the ids each filter can hold
defaults
what a filter is when its parameter is absent or holds nothing valid