astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
6 lines (5 loc) • 357 B
TypeScript
import type { Element } from 'hast';
import type MagicString from 'magic-string';
export declare function replaceAttribute(s: MagicString, node: Element, key: string, newValue: string): MagicString | undefined;
export declare function needsEscape(value: any): value is string;
export declare function escapeTemplateLiteralCharacters(value: string): string;