🔧 npm update
This commit is contained in:
44
node_modules/postcss/lib/input.d.ts
generated
vendored
44
node_modules/postcss/lib/input.d.ts
generated
vendored
@@ -62,6 +62,17 @@ declare class Input_ {
|
||||
*/
|
||||
css: string
|
||||
|
||||
/**
|
||||
* Input source with support for non-CSS documents.
|
||||
*
|
||||
* ```js
|
||||
* const input = postcss.parse('a{}', { from: file, document: '<style>a {}</style>' }).input
|
||||
* input.document //=> "<style>a {}</style>"
|
||||
* input.css //=> "a{}"
|
||||
* ```
|
||||
*/
|
||||
document: string
|
||||
|
||||
/**
|
||||
* The absolute path to the CSS source file defined
|
||||
* with the `from` option.
|
||||
@@ -100,6 +111,20 @@ declare class Input_ {
|
||||
*/
|
||||
map: PreviousMap
|
||||
|
||||
/**
|
||||
* The CSS source identifier. Contains `Input#file` if the user
|
||||
* set the `from` option, or `Input#id` if they did not.
|
||||
*
|
||||
* ```js
|
||||
* const root = postcss.parse(css, { from: 'a.css' })
|
||||
* root.source.input.from //=> "/home/ai/a.css"
|
||||
*
|
||||
* const root = postcss.parse(css)
|
||||
* root.source.input.from //=> "<input css 1>"
|
||||
* ```
|
||||
*/
|
||||
get from(): string
|
||||
|
||||
/**
|
||||
* @param css Input CSS source.
|
||||
* @param opts Process options.
|
||||
@@ -126,7 +151,6 @@ declare class Input_ {
|
||||
},
|
||||
opts?: { plugin?: CssSyntaxError['plugin'] }
|
||||
): CssSyntaxError
|
||||
|
||||
/**
|
||||
* Returns `CssSyntaxError` with information about the error and its position.
|
||||
*/
|
||||
@@ -136,13 +160,11 @@ declare class Input_ {
|
||||
column: number,
|
||||
opts?: { plugin?: CssSyntaxError['plugin'] }
|
||||
): CssSyntaxError
|
||||
|
||||
error(
|
||||
message: string,
|
||||
offset: number,
|
||||
opts?: { plugin?: CssSyntaxError['plugin'] }
|
||||
): CssSyntaxError
|
||||
|
||||
/**
|
||||
* Converts source offset to line and column.
|
||||
*
|
||||
@@ -174,19 +196,9 @@ declare class Input_ {
|
||||
endLine?: number,
|
||||
endColumn?: number
|
||||
): false | Input.FilePosition
|
||||
/**
|
||||
* The CSS source identifier. Contains `Input#file` if the user
|
||||
* set the `from` option, or `Input#id` if they did not.
|
||||
*
|
||||
* ```js
|
||||
* const root = postcss.parse(css, { from: 'a.css' })
|
||||
* root.source.input.from //=> "/home/ai/a.css"
|
||||
*
|
||||
* const root = postcss.parse(css)
|
||||
* root.source.input.from //=> "<input css 1>"
|
||||
* ```
|
||||
*/
|
||||
get from(): string
|
||||
|
||||
/** Converts this to a JSON-friendly object representation. */
|
||||
toJSON(): object
|
||||
}
|
||||
|
||||
declare class Input extends Input_ {}
|
||||
|
||||
Reference in New Issue
Block a user