Skip to content

Commit

Permalink
Fix 'length' is declared here issue (#26)
Browse files Browse the repository at this point in the history
* Fix 'length' is declared here issue

* Update typescript to 4.7.3 and format code

Co-authored-by: Teemu Taskula <[email protected]>
  • Loading branch information
shhong7757 and Temzasse authored Jun 5, 2022
1 parent 300f515 commit 098bb64
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@babel/core": "7.12.9",
"@types/react": "17.0.21",
"@types/react-native": "0.64.12",
"typescript": "4.5.4"
"typescript": "4.7.3"
},
"private": true
}
8 changes: 4 additions & 4 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5269,10 +5269,10 @@ type-fest@^0.7.1:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48"
integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==

typescript@4.5.4:
version "4.5.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
typescript@4.7.3:
version "4.7.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.3.tgz#8364b502d5257b540f9de4c40be84c98e23a129d"
integrity sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==

ua-parser-js@^0.7.19, ua-parser-js@^0.7.30:
version "0.7.31"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"react-native": "0.64.3",
"react-native-builder-bob": "0.18.1",
"react-test-renderer": "17.0.2",
"typescript": "4.5.4"
"typescript": "4.7.3"
},
"peerDependencies": {
"react": ">=16",
Expand Down
10 changes: 6 additions & 4 deletions src/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ export default interface Stitches<
>(
type: Type,
...composers: {
[K in keyof Composers]: Composers[K] extends // Strings, React Components, and Functions can be skipped over
| string
| React.ComponentType<any>
| Util.Function
[K in keyof Composers]: string extends Composers[K] // Strings and Functions can be skipped over
? Composers[K]
: Composers[K] extends
| string
| React.ComponentType<any>
| Util.Function
? Composers[K]
: CSS & {
/** The **variants** property lets you set a subclass of styles based on a key-value pair.
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7319,10 +7319,10 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@4.5.4:
version "4.5.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
typescript@4.7.3:
version "4.7.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.3.tgz#8364b502d5257b540f9de4c40be84c98e23a129d"
integrity sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==

uglify-es@^3.1.9:
version "3.3.9"
Expand Down

0 comments on commit 098bb64

Please sign in to comment.