UNPKG

syphonx-core

Version:

SyphonX is a template-driven solution for extracting data from HTML in a highly efficient way. It combines the power of jQuery, Regular Expressions, and Javascript into a declarative template-driven format that extracts and reshapes HTML data into JSON.

18 lines (17 loc) 600 B
import { ExtractState, Metrics } from "../public/index.js"; import { RepeatState } from "./RepeatState.js"; import { SelectContext } from "./SelectContext.js"; export interface ExtractStateInternal extends ExtractState { vars: ExtractStateInternalVars; } export interface ExtractStateInternalVars extends Record<string, unknown> { __instance: number; __context: SelectContext[]; __metrics: Metrics; __repeat: Record<number, RepeatState | undefined>; __step: number[]; __t0: number; __timeout: number; __yield: number[] | undefined; __yield_result?: unknown; }