Skip to main content

Variable: SelectorAnchorSchema

const SelectorAnchorSchema: ZodObject<{
fallbacks: ZodOptional<ZodObject<{
classList: ZodOptional<ZodArray<ZodString>>;
role: ZodOptional<ZodString>;
tag: ZodOptional<ZodString>;
text: ZodOptional<ZodString>;
}, $strip>>;
hint: ZodOptional<ZodObject<{
ariaLabel: ZodOptional<ZodString>;
expectedText: ZodOptional<ZodString>;
prefer: ZodOptional<ZodArray<ZodEnum<{
css: "css";
role: "role";
testid: "testid";
text: "text";
}>>>;
role: ZodOptional<ZodString>;
testid: ZodOptional<ZodString>;
}, $strip>>;
hints: ZodOptional<ZodObject<{
classList: ZodOptional<ZodOptional<ZodArray<ZodString>>>;
role: ZodOptional<ZodOptional<ZodString>>;
tag: ZodOptional<ZodOptional<ZodString>>;
text: ZodOptional<ZodOptional<ZodString>>;
}, $strip>>;
id: ZodString;
lastKnown: ZodOptional<ZodObject<{
selector: ZodString;
stabilityScore: ZodOptional<ZodNumber>;
timestamp: ZodOptional<ZodString>;
}, $strip>>;
lastSeen: ZodOptional<ZodNullable<ZodString>>;
meta: ZodOptional<ZodObject<{
component: ZodOptional<ZodString>;
description: ZodOptional<ZodString>;
tags: ZodOptional<ZodArray<ZodString>>;
}, $strip>>;
resolvedCss: ZodOptional<ZodNullable<ZodString>>;
snippet: ZodOptional<ZodString>;
snippetContext: ZodOptional<ZodObject<{
algorithm: ZodDefault<ZodEnum<{
md5: "md5";
sha1: "sha1";
sha256: "sha256";
}>>;
contextAfter: ZodDefault<ZodNumber>;
contextBefore: ZodDefault<ZodNumber>;
hashDigits: ZodDefault<ZodNumber>;
}, $strip>>;
snippetHash: ZodOptional<ZodString>;
source: ZodObject<{
col: ZodNumber;
file: ZodString;
line: ZodNumber;
}, $strip>;
subselector: ZodOptional<ZodString>;
}, $strip>;

Defined in: packages/uimatch-selector-anchors/src/types/schema.ts:91

Selector anchor schema - represents a single anchor point