@guardian/feast-multiplatform-library 8.0.4 → 8.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,16 @@ export declare namespace kotlin.collections {
18
18
  }
19
19
  }
20
20
  }
21
+ export declare namespace com.gu.recipe {
22
+ class TemplateSession {
23
+ constructor(densityTable: any/* com.gu.recipe.density.DensityTable */);
24
+ scaleAndConvertUnitRecipe(recipe: any/* com.gu.recipe.generated.RecipeV3 */, factor: number, measuringSystem: any/* com.gu.recipe.unit.MeasuringSystem */): any/* com.gu.recipe.generated.RecipeV3 */;
25
+ }
26
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
27
+ namespace TemplateSession.$metadata$ {
28
+ const constructor: abstract new () => TemplateSession;
29
+ }
30
+ }
21
31
  export declare namespace com.gu.recipe.template {
22
32
  interface TemplateElement {
23
33
  readonly __doNotUseOrImplementIt: {
@@ -95,7 +105,8 @@ export declare namespace com.gu.recipe.template {
95
105
  }
96
106
  }
97
107
  export declare namespace com.gu.recipe.js {
98
- function scaleRecipe(recipe: string, factor: number, unit: string): string;
108
+ function scaleRecipe(recipe: string, factor: number, unit: string, session: com.gu.recipe.TemplateSession): string;
99
109
  function parseTemplate(templateString: string): kotlin.collections.KtList<com.gu.recipe.template.TemplateElement>;
100
- function renderTemplate(templateElements: kotlin.collections.KtList<com.gu.recipe.template.TemplateElement>): string;
110
+ function renderTemplate(templateElements: kotlin.collections.KtList<com.gu.recipe.template.TemplateElement>, session: com.gu.recipe.TemplateSession): string;
111
+ function createTemplateSession(): com.gu.recipe.TemplateSession;
101
112
  }