public_library_map/node_modules/cheerio-select/lib/positionals.d.ts

10 lines
517 B
TypeScript
Raw Normal View History

2021-11-24 19:46:47 +11:00
import type { Selector, PseudoSelector } from "css-what";
export declare type Filter = "first" | "last" | "eq" | "nth" | "gt" | "lt" | "even" | "odd" | "not";
export declare const filterNames: Set<string>;
export interface CheerioSelector extends PseudoSelector {
name: Filter;
data: string | null;
}
export declare function isFilter(s: Selector): s is CheerioSelector;
2022-09-03 17:12:22 +10:00
export declare function getLimit(filter: Filter, data: string | null, partLimit: number): number;
2021-11-24 19:46:47 +11:00
//# sourceMappingURL=positionals.d.ts.map