UNPKG

@ciolabs/html-find-conditional-comments

Version:
33 lines (31 loc) 789 B
interface ConditionalComment { /** * Whether the item is a comment */ isComment: boolean; /** * Opening portion of the conditional comment. */ open: string; /** * Closing portion of the conditional comment. */ close: string; /** * Whether the comment "bubbles" around the value. */ bubble: boolean; /** * Either "revealed" or "hidden". */ downlevel: 'revealed' | 'hidden'; /** * A range array containing the start and end indices of the comment. */ range: [number, number]; } /** * Finds the conditional comments in HTML. */ declare function findConditionalComments(string_: string): ConditionalComment[]; export { type ConditionalComment, findConditionalComments as default };