Update typescript

This commit is contained in:
Anton Gunnarsson
2025-05-06 17:50:33 +02:00
parent 102c3b6df6
commit e4ad0d3466
5 changed files with 26 additions and 26 deletions

View File

@@ -7,7 +7,9 @@ import { PaymentMethodEnum } from "@/constants/booking"
export function useAvailablePaymentOptions(
otherPaymentOptions: PaymentMethodEnum[]
) {
const [availablePaymentOptions, setAvailablePaymentOptions] = useState(
const [availablePaymentOptions, setAvailablePaymentOptions] = useState<
PaymentMethodEnum[]
>(
otherPaymentOptions.filter(
(option) => option !== PaymentMethodEnum.applePay
)

View File

@@ -31,6 +31,5 @@ export async function getIntl(options?: { lang: Lang | undefined }) {
)
}
// Exclamation mark can be removed once we update TS to 5.8.2+
return instances[lang]!
return instances[lang]
}

View File

@@ -154,7 +154,7 @@
"ts-jest": "^29.3.2",
"ts-morph": "^25.0.1",
"ts-node": "^10.9.2",
"typescript": "5.4.5",
"typescript": "5.8.3",
"typescript-plugin-css-modules": "^5.1.0"
},
"engines": {

View File

@@ -95,7 +95,6 @@ export function getConnections({ content_page }: ContentPageRefs) {
case ContentPageEnum.ContentStack.blocks.Content:
{
if (block.content.length) {
// @ts-expect-error: TS has trouble infering the filtered types
connections.push(...block.content)
}
}