@adguard/agtree
Version:
Tool set for working with adblock filter lists
37 lines (36 loc) • 991 B
TypeScript
/**
* @file Schema for modifier data.
*/
import zod from 'zod';
/**
* Known validators that don't need to be validated as regex.
*/
export declare const KNOWN_VALIDATORS: ReadonlySet<string>;
/**
* Zod schema for modifier data.
*/
export declare const modifierDataSchema: zod.ZodEffects<zod.ZodTypeAny, {
name: string;
description: string | null;
aliases: string[] | null;
docs: string | null;
versionAdded: string | null;
versionRemoved: string | null;
deprecated: boolean;
deprecationMessage: string | null;
removed: boolean;
removalMessage: string | null;
conflicts: string[] | null;
inverseConflicts: boolean;
assignable: boolean;
negatable: boolean;
blockOnly: boolean;
exceptionOnly: boolean;
valueOptional: boolean;
valueFormat: string | null;
valueFormatFlags: string | null;
}, any>;
/**
* Type of the modifier data schema.
*/
export type ModifierDataSchema = zod.infer<typeof modifierDataSchema>;