diff --git a/types/postcss-less/index.d.ts b/types/postcss-less/index.d.ts index 4551f6afa770c80..0a866793d57c584 100644 --- a/types/postcss-less/index.d.ts +++ b/types/postcss-less/index.d.ts @@ -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 +// Daniel Cassidy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Minimum TypeScript Version: 3.7 import * as postcss from 'postcss'; diff --git a/types/postcss-less/package.json b/types/postcss-less/package.json index 6c875d983d35793..31797583aa77dcd 100644 --- a/types/postcss-less/package.json +++ b/types/postcss-less/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "postcss": "^7.0.32" + "postcss": "^8.1.2" } } diff --git a/types/postcss-less/postcss-less-tests.ts b/types/postcss-less/postcss-less-tests.ts index 67658ab5c65bd2b..464aa038c08b18b 100644 --- a/types/postcss-less/postcss-less-tests.ts +++ b/types/postcss-less/postcss-less-tests.ts @@ -1,4 +1,4 @@ -import postcss = require('postcss'); +import postcss from 'postcss'; import less = require('postcss-less'); const lessCode = ` diff --git a/types/postcss-less/tsconfig.json b/types/postcss-less/tsconfig.json index d9d0a32bb0444eb..827d8ced07c018d 100644 --- a/types/postcss-less/tsconfig.json +++ b/types/postcss-less/tsconfig.json @@ -1,8 +1,10 @@ { "compilerOptions": { "module": "commonjs", + "target": "ES5", "lib": [ - "es6" + "es6", + "ES2018.Promise" ], "noImplicitAny": true, "noImplicitThis": true,