/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/lazy-result.d.ts (4941B)
import Document from './document.js' import { SourceMap } from './postcss.js' import Processor from './processor.js' import Result, { Message, ResultOptions } from './result.js' import Root from './root.js' import Warning from './warning.js' declare namespace LazyResult { export { LazyResult_ as default } } /** * A Promise proxy for the result of PostCSS transformations. * * A `LazyResult` instance is returned by `Processor#process`. * * ```js * const lazy = postcss([autoprefixer]).process(css) * ``` */ declare class LazyResult_ implements PromiseLike> { /** * Processes input CSS through synchronous and asynchronous plugins * and calls onRejected for each error thrown in any plugin. * * It implements standard Promise API. * * ```js * postcss([autoprefixer]).process(css).then(result => { * console.log(result.css) * }).catch(error => { * console.error(error) * }) * ``` */ catch: Promise>['catch'] /** * Processes input CSS through synchronous and asynchronous plugins * and calls onFinally on any error or when all plugins will finish work. * * It implements standard Promise API. * * ```js * postcss([autoprefixer]).process(css).finally(() => { * console.log('processing ended') * }) * ``` */ finally: Promise>['finally'] /** * Processes input CSS through synchronous and asynchronous plugins * and calls `onFulfilled` with a Result instance. If a plugin throws * an error, the `onRejected` callback will be executed. * * It implements standard Promise API. * * ```js * postcss([autoprefixer]).process(css, { from: cssPath }).then(result => { * console.log(result.css) * }) * ``` */ then: Promise>['then'] /** * An alias for the `css` property. Use it with syntaxes * that generate non-CSS output. * * This property will only work with synchronous plugins. * If the processor contains any asynchronous plugins * it will throw an error. * * PostCSS runners should always use `LazyResult#then`. */ get content(): string /** * Processes input CSS through synchronous plugins, converts `Root` * to a CSS string and returns `Result#css`. * * This property will only work with synchronous plugins. * If the processor contains any asynchronous plugins * it will throw an error. * * PostCSS runners should always use `LazyResult#then`. */ get css(): string /** * Processes input CSS through synchronous plugins * and returns `Result#map`. * * This property will only work with synchronous plugins. * If the processor contains any asynchronous plugins * it will throw an error. * * PostCSS runners should always use `LazyResult#then`. */ get map(): SourceMap /** * Processes input CSS through synchronous plugins * and returns `Result#messages`. * * This property will only work with synchronous plugins. If the processor * contains any asynchronous plugins it will throw an error. * * PostCSS runners should always use `LazyResult#then`. */ get messages(): Message[] /** * Options from the `Processor#process` call. */ get opts(): ResultOptions /** * Returns a `Processor` instance, which will be used * for CSS transformations. */ get processor(): Processor /** * Processes input CSS through synchronous plugins * and returns `Result#root`. * * This property will only work with synchronous plugins. If the processor * contains any asynchronous plugins it will throw an error. * * PostCSS runners should always use `LazyResult#then`. */ get root(): RootNode /** * Returns the default string description of an object. * Required to implement the Promise interface. */ get [Symbol.toStringTag](): string /** * @param processor Processor used for this transformation. * @param css CSS to parse and transform. * @param opts Options from the `Processor#process` or `Root#toResult`. */ constructor(processor: Processor, css: string, opts: ResultOptions) /** * Run plugin in async way and return `Result`. * * @return Result with output content. */ async(): Promise> /** * Run plugin in sync way and return `Result`. * * @return Result with output content. */ sync(): Result /** * Alias for the `LazyResult#css` property. * * ```js * lazy + '' === lazy.css * ``` * * @return Output CSS. */ toString(): string /** * Processes input CSS through synchronous plugins * and calls `Result#warnings`. * * @return Warnings from plugins. */ warnings(): Warning[] } declare class LazyResult< RootNode = Document | Root > extends LazyResult_ {} export = LazyResult