You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
3 years ago
|
import {
|
||
|
Document,
|
||
|
Root,
|
||
|
Comment,
|
||
|
Declaration,
|
||
|
Builder,
|
||
|
AnyNode,
|
||
|
Rule,
|
||
|
AtRule,
|
||
|
Container
|
||
|
} from './postcss.js'
|
||
|
|
||
|
export default class Stringifier {
|
||
|
builder: Builder
|
||
|
constructor(builder: Builder)
|
||
|
stringify(node: AnyNode, semicolon?: boolean): void
|
||
|
document(node: Document): void
|
||
|
root(node: Root): void
|
||
|
comment(node: Comment): void
|
||
|
decl(node: Declaration, semicolon?: boolean): void
|
||
|
rule(node: Rule): void
|
||
|
atrule(node: AtRule, semicolon?: boolean): void
|
||
|
body(node: Container): void
|
||
|
block(node: AnyNode, start: string): void
|
||
|
raw(node: AnyNode, own: string | null, detect?: string): string
|
||
|
rawSemicolon(root: Root): boolean | undefined
|
||
|
rawEmptyBody(root: Root): string | undefined
|
||
|
rawIndent(root: Root): string | undefined
|
||
|
rawBeforeComment(root: Root, node: Comment): string | undefined
|
||
|
rawBeforeDecl(root: Root, node: Declaration): string | undefined
|
||
|
rawBeforeRule(root: Root): string | undefined
|
||
|
rawBeforeClose(root: Root): string | undefined
|
||
|
rawBeforeOpen(root: Root): string | undefined
|
||
|
rawColon(root: Root): string | undefined
|
||
|
beforeAfter(node: AnyNode, detect: 'before' | 'after'): string
|
||
|
rawValue(node: AnyNode, prop: string): string
|
||
|
}
|