Skip to content

Commit

Permalink
postcss-less: Update for v4.0 (DefinitelyTyped#49672)
Browse files Browse the repository at this point in the history
* postcss-less: Update for v4.0

The only change in this version is to bump the dependency on postcss
to ^8.1.2.

* postcss-less: add ES2018.Promise

The type declarations for postcss 8.x require this.

* postcss-less: Set target: ES5.

The type definitions for postcss 8.x require this.

* postcss-less: Add self to authors.

* postcss-less: Set minimum TypeScript version: 3.7.

The type definitions for postcss 8.x require this.

See: microsoft/TypeScript#33939

* postcss-less: Update tests for postcss 8.x.
  • Loading branch information
djcsdy authored and owenlow committed Dec 8, 2020
1 parent a1b8559 commit 8b443b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion types/postcss-less/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Type definitions for postcss-less 3.1
// Type definitions for postcss-less 4.0
// Project: https://github.com/shellscape/postcss-less
// Definitions by: Masafumi Koba <https://github.com/ybiquitous>
// Daniel Cassidy <https://github.com/djcsdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7

import * as postcss from 'postcss';

Expand Down
2 changes: 1 addition & 1 deletion types/postcss-less/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"postcss": "^7.0.32"
"postcss": "^8.1.2"
}
}
2 changes: 1 addition & 1 deletion types/postcss-less/postcss-less-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import postcss = require('postcss');
import postcss from 'postcss';
import less = require('postcss-less');

const lessCode = `
Expand Down
4 changes: 3 additions & 1 deletion types/postcss-less/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"lib": [
"es6"
"es6",
"ES2018.Promise"
],
"noImplicitAny": true,
"noImplicitThis": true,
Expand Down

0 comments on commit 8b443b9

Please sign in to comment.