vinmonopolet-ts
Version:
Extracts information on products, categories and stores from Vinmonopolet
21 lines (20 loc) • 481 B
TypeScript
interface IRawFacetValue {
code?: string;
name?: string;
count?: number;
query: {
url?: string;
query: {
value: string;
filterQueries?: string[];
};
};
}
declare class FacetValue {
name: string;
count: number | undefined;
query: string;
constructor(value: IRawFacetValue, filter?: (val: any) => any);
static cooerce(facetVal: any): FacetValue;
}
export default FacetValue;