File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2009,12 +2009,12 @@ export class Recipe {
20092009 // v8 ignore else -- @preserve
20102010 if ( alternative . quantity ) {
20112011 const converted = convertAlternativeQuantity (
2012- alternative as IngredientAlternative & MaybeScalableQuantity ,
2012+ alternative ,
20132013 ) ;
20142014 alternative . quantity = converted . quantity ;
20152015 alternative . unit = converted . unit ;
20162016 (
2017- alternative as IngredientAlternative & MaybeScalableQuantity
2017+ alternative
20182018 ) . scalable = converted . scalable ;
20192019 alternative . equivalents = converted . equivalents ;
20202020 }
Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ export class ShoppingList {
488488 ( e : QuantityWithPlainUnit ) => e . unit ! , // equivalents always have units
489489 ) ;
490490 const recomputed = recomputeEquivalents (
491- [ entry as QuantityWithPlainUnit ] ,
491+ [ entry ] ,
492492 ratioMap ,
493493 equivUnits ,
494494 ) ;
Original file line number Diff line number Diff line change @@ -431,11 +431,11 @@ export function toPlainUnit(
431431 else if ( isOrGroup ( quantity ) ) {
432432 return {
433433 or : quantity . or . map ( toPlainUnit ) ,
434- } as MaybeNestedGroup < QuantityWithPlainUnit > ;
434+ } ;
435435 } else {
436436 return {
437437 and : quantity . and . map ( toPlainUnit ) ,
438- } as MaybeNestedGroup < QuantityWithPlainUnit > ;
438+ } ;
439439 }
440440}
441441
Original file line number Diff line number Diff line change @@ -44,5 +44,5 @@ export const qWithUnitDef = (
4444) : QuantityWithUnitDef => {
4545 const quantity = q ( amount , unit , integerProtected ) ;
4646 const resolvedUnit = resolveUnit ( quantity . unit ?. name , integerProtected ) ;
47- return { ...quantity , unit : resolvedUnit } as QuantityWithUnitDef ;
47+ return { ...quantity , unit : resolvedUnit } ;
4848} ;
You can’t perform that action at this time.
0 commit comments