feat(SW-415): Update typings

This commit is contained in:
Pontus Dreij
2024-10-10 13:38:05 +02:00
parent 1d4947ecb6
commit 9d106713a0
9 changed files with 42 additions and 56 deletions

View File

@@ -35,7 +35,7 @@ export default function RoomCard({
(rate) => rate.cancellationRule === "CancellableBefore6PM"
)
const findProductForRate = (rate: RateDefinition | undefined) => {
function findProductForRate(rate: RateDefinition | undefined) {
return rate
? roomConfiguration.products.find(
(product) =>
@@ -45,9 +45,9 @@ export default function RoomCard({
: undefined
}
const getPriceForRate = (
function getPriceForRate(
rate: typeof saveRate | typeof changeRate | typeof flexRate
) => {
) {
return rateDefinitions.find((def) => def.rateCode === rate?.rateCode)
?.generalTerms
}