Skip to content

Commit

Permalink
Migrate @emotion/unitless to TypeScript (#2430)
Browse files Browse the repository at this point in the history
* [unitless] Convert to TypeScript

* Add changeset

* tweak some minor things

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
sarayourfriend and Andarist committed Aug 14, 2021
1 parent 3119b05 commit fc4d27c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-clocks-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@emotion/unitless': minor
---

Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.
1 change: 1 addition & 0 deletions packages/unitless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "An object of css properties that don't accept values with units",
"main": "dist/emotion-unitless.cjs.js",
"module": "dist/emotion-unitless.esm.js",
"types": "dist/emotion-unitless.cjs.d.ts",
"license": "MIT",
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/unitless",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let unitlessKeys /*: { [key: string]: 1 } */ = {
let unitlessKeys = {
animationIterationCount: 1,
borderImageOutset: 1,
borderImageSlice: 1,
Expand Down Expand Up @@ -46,6 +46,6 @@ let unitlessKeys /*: { [key: string]: 1 } */ = {
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
}
} as const

export default unitlessKeys

0 comments on commit fc4d27c

Please sign in to comment.