Update typescript
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user