full site update
This commit is contained in:
19
node_modules/postcss/lib/node.d.ts
generated
vendored
19
node_modules/postcss/lib/node.d.ts
generated
vendored
@@ -1,5 +1,4 @@
|
||||
import AtRule = require('./at-rule.js')
|
||||
|
||||
import { AtRuleProps } from './at-rule.js'
|
||||
import Comment, { CommentProps } from './comment.js'
|
||||
import Container, { NewChild } from './container.js'
|
||||
@@ -66,6 +65,22 @@ declare namespace Node {
|
||||
/**
|
||||
* The inclusive ending position for the source
|
||||
* code of a node.
|
||||
*
|
||||
* However, `end.offset` of a non `Root` node is the exclusive position.
|
||||
* See https://github.com/postcss/postcss/pull/1879 for details.
|
||||
*
|
||||
* ```js
|
||||
* const root = postcss.parse('a { color: black }')
|
||||
* const a = root.first
|
||||
* const color = a.first
|
||||
*
|
||||
* // The offset of `Root` node is the inclusive position
|
||||
* css.source.end // { line: 1, column: 19, offset: 18 }
|
||||
*
|
||||
* // The offset of non `Root` node is the exclusive position
|
||||
* a.source.end // { line: 1, column: 18, offset: 18 }
|
||||
* color.source.end // { line: 1, column: 16, offset: 16 }
|
||||
* ```
|
||||
*/
|
||||
end?: Position
|
||||
|
||||
@@ -424,7 +439,7 @@ declare abstract class Node_ {
|
||||
* @return Range.
|
||||
*/
|
||||
rangeBy(
|
||||
opts?: Pick<WarningOptions, 'endIndex' | 'index' | 'word'>
|
||||
opts?: Pick<WarningOptions, 'end' | 'endIndex' | 'index' | 'start' | 'word'>
|
||||
): Node.Range
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user