Skip to content

Commit

Permalink
chore: Update @types/csso and correct types (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored Dec 27, 2023
1 parent c2cacc7 commit 4768af6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion lib/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
const csstree = require('css-tree');
const csswhat = require('css-what');
const {
// @ts-ignore internal api
syntax: { specificity },
} = require('csso');
const { visit, matches } = require('./xast.js');
Expand Down
2 changes: 1 addition & 1 deletion lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export type Plugin<Params> = (
info: PluginInfo,
) => null | Visitor;

export type Specificity = [number, number, number, number];
export type Specificity = [number, number, number];

export type StylesheetDeclaration = {
name: string;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
"css-select": "^5.1.0",
"css-tree": "^2.2.1",
"css-what": "^6.1.0",
"csso": "5.0.5",
"csso": "^5.0.5",
"picocolors": "^1.0.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^14.1.0",
"@types/css-tree": "^2.0.0",
"@types/csso": "~5.0.3",
"@types/csso": "^5.0.4",
"@types/jest": "^29.5.5",
"del": "^6.0.0",
"eslint": "^8.55.0",
Expand Down
1 change: 0 additions & 1 deletion plugins/inlineStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

const csstree = require('css-tree');
const {
// @ts-ignore internal api
syntax: { specificity },
} = require('csso');
const {
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -983,12 +983,12 @@ __metadata:
languageName: node
linkType: hard

"@types/csso@npm:~5.0.3":
version: 5.0.3
resolution: "@types/csso@npm:5.0.3"
"@types/csso@npm:^5.0.4":
version: 5.0.4
resolution: "@types/csso@npm:5.0.4"
dependencies:
"@types/css-tree": "*"
checksum: 3d299ea755732f9b913cfb3d94849e173cd1019559058af0a372aa1ca8f48a3c63aa74932fdfa2f2f25ee78255a115feaaec01ae4fe9578e76b7c4acd8ae3f2a
checksum: 606ea4de171e807ffc8908f7ffec774c8a40f3c81e7c60f8a84c7f5327eb00f3c9948b021b91e2e8fe3a76af4623ac58538780f0789f1e03947b7de96c5f7994
languageName: node
linkType: hard

Expand Down Expand Up @@ -1704,7 +1704,7 @@ __metadata:
languageName: node
linkType: hard

"csso@npm:5.0.5":
"csso@npm:^5.0.5":
version: 5.0.5
resolution: "csso@npm:5.0.5"
dependencies:
Expand Down Expand Up @@ -4430,13 +4430,13 @@ __metadata:
"@rollup/plugin-node-resolve": ^14.1.0
"@trysound/sax": 0.2.0
"@types/css-tree": ^2.0.0
"@types/csso": ~5.0.3
"@types/csso": ^5.0.4
"@types/jest": ^29.5.5
commander: ^7.2.0
css-select: ^5.1.0
css-tree: ^2.2.1
css-what: ^6.1.0
csso: 5.0.5
csso: ^5.0.5
del: ^6.0.0
eslint: ^8.55.0
jest: ^29.5.5
Expand Down

0 comments on commit 4768af6

Please sign in to comment.