DefinitelyTyped/types/postcss-less
Masafumi Koba 15146dc228
🤖 Merge PR #46344 [postcss-less] improve definitions by @ybiquitous
- Add the missing `VariableAtRule.value` property.
  - https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/nodes/variable.js#L24
  - https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/nodes/variable.js#L30

- Add the missing `ExtendDeclaration` interface. See the test code below:
  - https://github.com/shellscape/postcss-less/blob/v3.1.4/lib/LessParser.js#L187

```console
$ node -e "require('postcss-less').parse('&:extend(.a)').walkDecls(console.log)"
<ref *1> Declaration {
  raws: { before: '', between: ':' },
  type: 'decl',
  parent: Root {
    raws: { semicolon: false, after: '' },
    type: 'root',
    nodes: [ [Circular *1] ],
    source: { input: [Input], start: [Object] },
    lastEach: 1,
    indexes: { '1': 0 }
  },
  source: {
    start: { line: 1, column: 1 },
    input: Input { css: '&:extend(.a)', hasBOM: false, id: '<input css 1>' },
    end: { line: 1, column: 12 }
  },
  prop: '&',
  value: 'extend(.a)',
  extend: true
} 0
```
2020-08-03 18:13:27 -04:00
..
index.d.ts
package.json
postcss-less-tests.ts
tsconfig.json
tslint.json