Skip to content

Commit 3f43cd0

Browse files
authored
🤖 Merge PR DefinitelyTyped#74248 [postcss-fail-on-warn] Add types for package postcss-fail-on-warn by @jdufresne
1 parent f94dc70 commit 3f43cd0

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*
2+
!**/*.d.ts
3+
!**/*.d.cts
4+
!**/*.d.mts
5+
!**/*.d.*.ts
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Plugin } from "postcss";
2+
3+
declare const postcssFailOnWarn: Plugin<{}>;
4+
5+
export = postcssFailOnWarn;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"private": true,
3+
"name": "@types/postcss-fail-on-warn",
4+
"version": "0.2.9999",
5+
"projects": [
6+
"https://github.com/postcss/postcss-fail-on-warn#readme"
7+
],
8+
"dependencies": {
9+
"postcss": "^6.0.17"
10+
},
11+
"devDependencies": {
12+
"@types/postcss-fail-on-warn": "workspace:."
13+
},
14+
"owners": []
15+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import postcss = require("postcss");
2+
import failOnWarn from "postcss-fail-on-warn";
3+
4+
postcss([failOnWarn]);
5+
postcss([failOnWarn()]);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"module": "node16",
4+
"lib": [
5+
"es6"
6+
],
7+
"noImplicitAny": true,
8+
"noImplicitThis": true,
9+
"strictFunctionTypes": true,
10+
"strictNullChecks": true,
11+
"types": [],
12+
"noEmit": true,
13+
"forceConsistentCasingInFileNames": true
14+
},
15+
"files": [
16+
"index.d.ts",
17+
"postcss-fail-on-warn-tests.ts"
18+
]
19+
}

0 commit comments

Comments
 (0)