Sha256: d8de05c0ed993c058457eef5283dce4398b0ad31f98f7f2d34da6348bfccb46a

Contents?: true

Size: 1.44 KB

Versions: 13

Compression:

Stored size: 1.44 KB

Contents

import CssSyntaxError from './css-syntax-error';
import PreviousMap from './previous-map';
import LazyResult from './lazy-result';
import postcss from './postcss';
import Result from './result';
export default class Input implements postcss.Input {
    /**
     * The absolute path to the CSS source file defined with the "from" option.
     */
    file: string;
    /**
     * The unique ID of the CSS source. Used if "from" option is not provided
     * (because PostCSS does not know the file path).
     */
    id: string;
    /**
     * Represents the input source map passed from a compilation step before
     * PostCSS (e.g., from the Sass compiler).
     */
    map: PreviousMap;
    css: string;
    /**
     * Represents the source CSS.
     */
    constructor(css: string | {
        toString(): string;
    } | LazyResult | Result, opts?: {
        safe?: boolean | any;
        from?: string;
    });
    /**
     * The CSS source identifier. Contains input.file if the user set the "from"
     * option, or input.id if they did not.
     */
    from: string;
    error(message: string, line: number, column: number, opts?: {
        plugin?: string;
    }): CssSyntaxError;
    /**
     * Reads the input source map.
     * @returns A symbol position in the input source (e.g., in a Sass file
     * that was compiled to CSS before being passed to PostCSS):
     */
    origin(line: number, column: number): postcss.InputOrigin;
    private mapResolve(file);
}

Version data entries

13 entries across 4 versions & 2 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-postcss/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.5 template/node_modules/css-mqpacker/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.5 template/node_modules/csswring/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.5 template/node_modules/autoprefixer/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.4 template/node_modules/csswring/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.4 template/node_modules/autoprefixer/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.4 template/node_modules/css-mqpacker/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-postcss/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.3 template/node_modules/autoprefixer/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-postcss/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.3 template/node_modules/csswring/node_modules/postcss/d.ts/input.d.ts
gulp_assets-1.0.0.pre.3 template/node_modules/css-mqpacker/node_modules/postcss/d.ts/input.d.ts