diff --git a/docs/package.json b/docs/package.json index 0f4645f8..af50b487 100644 --- a/docs/package.json +++ b/docs/package.json @@ -19,6 +19,6 @@ }, "devDependencies": { "@types/node": "20.14.15", - "typescript": "5.4.5" + "typescript": "5.5.4" } } diff --git a/docs/yarn.lock b/docs/yarn.lock index b2c52a63..32220d04 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -3349,10 +3349,10 @@ type-fest@^1.0.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1" integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== -typescript@5.4.5: - version "5.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" - integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== +typescript@5.5.4: + version "5.5.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba" + integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q== undici-types@~5.26.4: version "5.26.5" diff --git a/packages/styled-system/package.json b/packages/styled-system/package.json index 5dd99a92..767c3d77 100644 --- a/packages/styled-system/package.json +++ b/packages/styled-system/package.json @@ -62,7 +62,7 @@ "styled-components": "6.1.12", "ts-jest": "29.2.4", "tslib": "2.6.3", - "typescript": "5.4.5" + "typescript": "5.5.4" }, "dependencies": { "@emotion/is-prop-valid": "1.3.0", diff --git a/packages/styled-system/src/utils.ts b/packages/styled-system/src/utils.ts index 4728214e..3950cf49 100644 --- a/packages/styled-system/src/utils.ts +++ b/packages/styled-system/src/utils.ts @@ -7,7 +7,7 @@ export function isNumber(n: number | string | object) { } export function isObject( - value: number | string | object | null | (() => unknown) + value: number | string | object | null | ((...args: any[]) => unknown) ): value is Record { const type = typeof value; return ( diff --git a/yarn.lock b/yarn.lock index 172e878e..e400503d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11878,6 +11878,11 @@ typescript@5.4.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== +typescript@5.5.4: + version "5.5.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba" + integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q== + "typescript@>=3 < 6": version "5.1.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.3.tgz#8d84219244a6b40b6fb2b33cc1c062f715b9e826"