@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
19 lines (18 loc) • 518 B
TypeScript
import { type Element } from 'parse5/dist/tree-adapters/default';
type AtLeastOne<T, K extends keyof T = keyof T> = {
[P in K]-?: Required<Pick<T, P>>;
}[K] & Partial<T>;
interface Filters {
readonly withAttrsNames: string[];
readonly withTagNames: string[];
}
export interface ReplacementAttribute {
readonly from: AtLeastOne<Filters> & {
readonly attrName: string;
filterFn?(element: Element): boolean;
};
readonly to: {
readonly attrName: string;
};
}
export {};