Comparing version 2.1.1 to 2.2.0
{ | ||
"name": "csstype", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"description": "TypeScript definitions for CSS", | ||
"description": "Strict TypeScript and Flow types for style based on MDN data", | ||
"repository": "https://github.com/frenic/csstype", | ||
@@ -16,5 +16,6 @@ "author": "Fredrik Nicol <fredrik.nicol@gmail.com>", | ||
"chokidar": "^2.0.0", | ||
"flow-bin": "^0.68.0", | ||
"flow-bin": "^0.69.0", | ||
"jest": "^22.2.1", | ||
"mdn-data": "git+https://github.com/mdn/data.git#9513169e8dd59e5c076e879ac462af2d386b4699", | ||
"mdn-browser-compat-data": "0.0.30", | ||
"mdn-data": "1.1.1", | ||
"prettier": "^1.10.2", | ||
@@ -34,3 +35,4 @@ "ts-node": "^5.0.1", | ||
"typecheck": "tsc typecheck.ts --noEmit --pretty & flow check typecheck.js", | ||
"prepublish": "tsc && npm run test && npm run build && npm run typecheck" | ||
"prepublish": "tsc && npm run test && npm run build && npm run typecheck", | ||
"rebase-build": "git rebase -s recursive -X theirs --exec \"yarn build && git commit -a --amend --no-verify --no-edit --allow-empty\"" | ||
}, | ||
@@ -37,0 +39,0 @@ "files": [ |
@@ -40,2 +40,19 @@ # CSSType | ||
All properties are categorized in different uses and in several technical variations to provide the type that suits as many as possible. | ||
Categories: | ||
* `Standard` - Current properties | ||
* `Vendor` - Vendor prefixed properties | ||
* `Obsolete` - Removed or deprecated properties | ||
* `Svg` - SVG-specific properties | ||
Variations: | ||
* _Default variation_ - JavaScript default (camel) cased property names | ||
* `Hyphen` - CSS default (kebab) cased property names | ||
* `Fallback` - Accepts array of values e.g. `string | string[]` | ||
All interfaces has one optional generic argument to define length. It defaults to `string | 0` because `0` is the [only unitless length](https://www.w3.org/TR/REC-CSS2/syndata.html#length-units) by default. You can specify this, e.g. `string | number`, for platforms and libraries that accepts any numeric value with a specific unit. | ||
### `Properties` | ||
@@ -53,2 +70,3 @@ | ||
* `VendorShorthandProperties` | ||
* `ObsoleteProperties` | ||
* `SvgProperties` | ||
@@ -68,2 +86,3 @@ | ||
* `VendorShorthandPropertiesHyphen` | ||
* `ObsoletePropertiesHyphen` | ||
* `SvgPropertiesHyphen` | ||
@@ -83,2 +102,3 @@ | ||
* `VendorShorthandPropertiesFallback` | ||
* `ObsoletePropertiesFallback` | ||
* `SvgPropertiesFallback` | ||
@@ -98,2 +118,3 @@ | ||
* `VendorShorthandPropertiesHyphenFallback` | ||
* `ObsoletePropertiesHyphenFallback` | ||
* `SvgPropertiesHyphenFallback` | ||
@@ -143,3 +164,3 @@ | ||
Length unit defaults to `string | 0` because `0` is the [only unitless length](https://www.w3.org/TR/REC-CSS2/syndata.html#length-units). But it's possible to override it using generics. | ||
Length defaults to `string | 0`. But it's possible to override it using generics. | ||
@@ -146,0 +167,0 @@ ```ts |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
469044
4366
217
14