@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
15 lines (14 loc) • 588 B
TypeScript
import { type UpdateRecorder } from '@angular-devkit/schematics';
import { type DefaultTreeAdapterTypes } from 'parse5';
type Element = DefaultTreeAdapterTypes.Element;
/**
* Finds an attribute on a parsed element by name (checks both `attrName` and `[attrName]` forms),
* removes it via the recorder, and returns the value.
*
* @returns `value` is `null` when the attribute was not present.
*/
export declare function removeAttr(element: Element, attrName: string, recorder: UpdateRecorder, templateOffset: number): {
value: string | null;
isBinding: boolean;
};
export {};