/opt/canhelp/node_modules/postcss/lib
NameSizeModeActions
at-rule.d.ts33600644editdlrm
at-rule.js4710644editdlrm
comment.d.ts16840644editdlrm
comment.js2030644editdlrm
container.d.ts140470644editdlrm
container.js106470644editdlrm
css-syntax-error.d.ts64510644editdlrm
css-syntax-error.js34020644editdlrm
declaration.d.ts38370644editdlrm
declaration.js4950644editdlrm
document.d.ts18880644editdlrm
document.js6540644editdlrm
fromJSON.d.ts1620644editdlrm
fromJSON.js15060644editdlrm
input.d.ts51300644editdlrm
input.js67520644editdlrm
lazy-result.d.ts49410644editdlrm
lazy-result.js135620644editdlrm
list.d.ts14260644editdlrm
list.js12270644editdlrm
map-generator.js100310644editdlrm
no-work-result.d.ts15070644editdlrm
no-work-result.js26210644editdlrm
node.d.ts146980644editdlrm
node.js107190644editdlrm
parse.d.ts1350644editdlrm
parse.js11470644editdlrm
parser.js148460644editdlrm
postcss.d.mts10490644editdlrm
postcss.d.ts114610644editdlrm
postcss.js28980644editdlrm
postcss.mjs9800644editdlrm
previous-map.d.ts17610644editdlrm
previous-map.js39840644editdlrm
processor.d.ts33490644editdlrm
processor.js17380644editdlrm
result.d.ts43500644editdlrm
result.js7380644editdlrm
root.d.ts22570644editdlrm
root.js12390644editdlrm
rule.d.ts29010644editdlrm
rule.js5690644editdlrm
stringifier.d.ts13640644editdlrm
stringifier.js82200644editdlrm
stringify.d.ts1650644editdlrm
stringify.js2130644editdlrm
symbols.js910644editdlrm
terminal-highlight.js13990644editdlrm
tokenize.js65380644editdlrm
warn-once.js2560644editdlrm
warning.d.ts29280644editdlrm
warning.js7390644editdlrm
Edit: /opt/canhelp/node_modules/postcss/lib/postcss.d.ts (11461B)
import { RawSourceMap, SourceMapGenerator } from 'source-map-js' import AtRule, { AtRuleProps } from './at-rule.js' import Comment, { CommentProps } from './comment.js' import Container, { ContainerProps, NewChild } from './container.js' import CssSyntaxError from './css-syntax-error.js' import Declaration, { DeclarationProps } from './declaration.js' import Document, { DocumentProps } from './document.js' import Input, { FilePosition } from './input.js' import LazyResult from './lazy-result.js' import list from './list.js' import Node, { AnyNode, ChildNode, ChildProps, NodeErrorOptions, NodeProps, Position, Source } from './node.js' import Processor from './processor.js' import Result, { Message } from './result.js' import Root, { RootProps } from './root.js' import Rule, { RuleProps } from './rule.js' import Warning, { WarningOptions } from './warning.js' type DocumentProcessor = ( document: Document, helper: postcss.Helpers ) => Promise | void type RootProcessor = ( root: Root, helper: postcss.Helpers ) => Promise | void type DeclarationProcessor = ( decl: Declaration, helper: postcss.Helpers ) => Promise | void type RuleProcessor = ( rule: Rule, helper: postcss.Helpers ) => Promise | void type AtRuleProcessor = ( atRule: AtRule, helper: postcss.Helpers ) => Promise | void type CommentProcessor = ( comment: Comment, helper: postcss.Helpers ) => Promise | void interface Processors { /** * Will be called on all`AtRule` nodes. * * Will be called again on node or children changes. */ AtRule?: { [name: string]: AtRuleProcessor } | AtRuleProcessor /** * Will be called on all `AtRule` nodes, when all children will be processed. * * Will be called again on node or children changes. */ AtRuleExit?: { [name: string]: AtRuleProcessor } | AtRuleProcessor /** * Will be called on all `Comment` nodes. * * Will be called again on node or children changes. */ Comment?: CommentProcessor /** * Will be called on all `Comment` nodes after listeners * for `Comment` event. * * Will be called again on node or children changes. */ CommentExit?: CommentProcessor /** * Will be called on all `Declaration` nodes after listeners * for `Declaration` event. * * Will be called again on node or children changes. */ Declaration?: { [prop: string]: DeclarationProcessor } | DeclarationProcessor /** * Will be called on all `Declaration` nodes. * * Will be called again on node or children changes. */ DeclarationExit?: | { [prop: string]: DeclarationProcessor } | DeclarationProcessor /** * Will be called on `Document` node. * * Will be called again on children changes. */ Document?: DocumentProcessor /** * Will be called on `Document` node, when all children will be processed. * * Will be called again on children changes. */ DocumentExit?: DocumentProcessor /** * Will be called on `Root` node once. */ Once?: RootProcessor /** * Will be called on `Root` node once, when all children will be processed. */ OnceExit?: RootProcessor /** * Will be called on `Root` node. * * Will be called again on children changes. */ Root?: RootProcessor /** * Will be called on `Root` node, when all children will be processed. * * Will be called again on children changes. */ RootExit?: RootProcessor /** * Will be called on all `Rule` nodes. * * Will be called again on node or children changes. */ Rule?: RuleProcessor /** * Will be called on all `Rule` nodes, when all children will be processed. * * Will be called again on node or children changes. */ RuleExit?: RuleProcessor } declare namespace postcss { export { AnyNode, AtRule, AtRuleProps, ChildNode, ChildProps, Comment, CommentProps, Container, ContainerProps, CssSyntaxError, Declaration, DeclarationProps, Document, DocumentProps, FilePosition, Input, LazyResult, list, Message, NewChild, Node, NodeErrorOptions, NodeProps, Position, Processor, Result, Root, RootProps, Rule, RuleProps, Source, Warning, WarningOptions } export type SourceMap = { toJSON(): RawSourceMap } & SourceMapGenerator export type Helpers = { postcss: Postcss; result: Result } & Postcss export interface Plugin extends Processors { postcssPlugin: string prepare?: (result: Result) => Processors } export interface PluginCreator { (opts?: PluginOptions): Plugin | Processor postcss: true } export interface Transformer extends TransformCallback { postcssPlugin: string postcssVersion: string } export interface TransformCallback { (root: Root, result: Result): Promise | void } export interface OldPlugin extends Transformer { (opts?: T): Transformer postcss: Transformer } export type AcceptedPlugin = | { postcss: Processor | TransformCallback } | OldPlugin | Plugin | PluginCreator | Processor | TransformCallback export interface Parser { ( css: { toString(): string } | string, opts?: Pick ): RootNode } export interface Builder { (part: string, node?: AnyNode, type?: 'end' | 'start'): void } export interface Stringifier { (node: AnyNode, builder: Builder): void } export interface JSONHydrator { (data: object): Node (data: object[]): Node[] } export interface Syntax { /** * Function to generate AST by string. */ parse?: Parser /** * Class to generate string by AST. */ stringify?: Stringifier } export interface SourceMapOptions { /** * Use absolute path in generated source map. */ absolute?: boolean /** * Indicates that PostCSS should add annotation comments to the CSS. * By default, PostCSS will always add a comment with a path * to the source map. PostCSS will not add annotations to CSS files * that do not contain any comments. * * By default, PostCSS presumes that you want to save the source map as * `opts.to + '.map'` and will use this path in the annotation comment. * A different path can be set by providing a string value for annotation. * * If you have set `inline: true`, annotation cannot be disabled. */ annotation?: ((file: string, root: Root) => string) | boolean | string /** * Override `from` in map’s sources. */ from?: string /** * Indicates that the source map should be embedded in the output CSS * as a Base64-encoded comment. By default, it is `true`. * But if all previous maps are external, not inline, PostCSS will not embed * the map even if you do not set this option. * * If you have an inline source map, the result.map property will be empty, * as the source map will be contained within the text of `result.css`. */ inline?: boolean /** * Source map content from a previous processing step (e.g., Sass). * * PostCSS will try to read the previous source map * automatically (based on comments within the source CSS), but you can use * this option to identify it manually. * * If desired, you can omit the previous map with prev: `false`. */ prev?: ((file: string) => string) | boolean | object | string /** * Indicates that PostCSS should set the origin content (e.g., Sass source) * of the source map. By default, it is true. But if all previous maps do not * contain sources content, PostCSS will also leave it out even if you * do not set this option. */ sourcesContent?: boolean } export interface ProcessOptions { /** * Input file if it is not simple CSS file, but HTML with