/** * Creates an accessor function based on the field expression. * This is equivalent to vega-util's field function but generates optimized * accessors for trivial cases. * * Function calls with polymorphic objects spoil the inline caching that * virtually all JavaScript engines use. Thus, we generate code and compile * always a new function to "guarantee" homomorphims, given that only same * type of objects are even passed to the accessor. * * Read more at: https://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html * * @param {string} fieldExpr * @param {string} [name] */ export function field(fieldExpr: string, name?: string): import("vega-util").AccessorFn; //# sourceMappingURL=field.d.ts.map