Skip to content

Commit 4c162b3

Browse files
committed
Fix css files
1 parent 95255ed commit 4c162b3

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"package.json":"Patch"},"note":"Add properties","date":"2025-11-11T23:59:31.243907600Z"}

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
bun run lint

build.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ output += `export type SimplePseudos = ${Object.keys(selectors)
132132
.join(' | ')}\n`
133133
output += `export type Pseudos = AdvancedPseudos | SimplePseudos\n`
134134

135+
output += `export interface StandardProperties extends StandardLonghandProperties,StandardShorthandProperties{}
136+
export interface VendorProperties extends VendorLonghandProperties,VendorShorthandProperties{}
137+
export interface Properties extends StandardProperties,VendorProperties{}\n`
138+
135139
output += `export namespace Property {\n`
136140
for (const [property, value] of standardLonghandProperties) {
137141
output += ` export type ${toPascalCase(property)} = ${convertType(value.syntax, syntaxes)};\n`

bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@types/bun": "latest",
1010
"@types/css-tree": "^2.3.11",
1111
"css-tree": "^3.1.0",
12+
"husky": "^9.1",
1213
},
1314
"peerDependencies": {
1415
"typescript": "^5",
@@ -48,6 +49,8 @@
4849

4950
"csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="],
5051

52+
"husky": ["husky@9.1.7", "", { "bin": { "husky": "bin.js" } }, "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA=="],
53+
5154
"mdn-data": ["mdn-data@2.12.2", "", {}, "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA=="],
5255

5356
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"scripts": {
1616
"lint": "biome check .",
1717
"lint:fix": "biome check --write .",
18-
"build": "bun build.ts"
18+
"build": "bun build.ts",
19+
"prepare": "husky"
1920
},
2021
"files": [
2122
"src"
@@ -25,7 +26,8 @@
2526
"@biomejs/biome": "^2.3",
2627
"@types/bun": "latest",
2728
"@types/css-tree": "^2.3.11",
28-
"css-tree": "^3.1.0"
29+
"css-tree": "^3.1.0",
30+
"husky": "^9.1"
2931
},
3032
"peerDependencies": {
3133
"typescript": "^5"

src/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,13 @@ export type SimplePseudos =
717717
| '::target-text'
718718
| '::view-transition'
719719
export type Pseudos = AdvancedPseudos | SimplePseudos
720+
export interface StandardProperties
721+
extends StandardLonghandProperties,
722+
StandardShorthandProperties {}
723+
export interface VendorProperties
724+
extends VendorLonghandProperties,
725+
VendorShorthandProperties {}
726+
export interface Properties extends StandardProperties, VendorProperties {}
720727
export namespace Property {
721728
export type AccentColor = 'auto' | TColor
722729
export type AlignContent =

0 commit comments

Comments
 (0)