@hedia/recommendation-screen 2.2.0-alpha.27 → 2.2.0-alpha.28
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.
|
@@ -44,9 +44,9 @@ export interface IRecommendationProps {
|
|
|
44
44
|
/** The properties of the entered activity that are not used for making the calculation itself, but will be used on the recommendation screen. */
|
|
45
45
|
activityDisplayProps: IActivityDisplayProps | null;
|
|
46
46
|
/** Forecast data received from the app */
|
|
47
|
-
forecast
|
|
47
|
+
forecast?: IForecast;
|
|
48
48
|
/** CGM data received from the app */
|
|
49
|
-
cgm
|
|
49
|
+
cgm?: ICGMReading;
|
|
50
50
|
/**
|
|
51
51
|
* Callback function taking a single boolean argument and returning nothing.
|
|
52
52
|
* To be called when the user decides on a presented carbohydrate recommendation.
|
|
@@ -15,7 +15,7 @@ export interface IProps {
|
|
|
15
15
|
/** Used to determine how the insulin amount should be rounded. */
|
|
16
16
|
injectionMethod: UserSettings.Enums.InjectionMethod;
|
|
17
17
|
/** Used to show different text depending on different insulin ranges. */
|
|
18
|
-
forecast
|
|
18
|
+
forecast?: IForecast;
|
|
19
19
|
/**
|
|
20
20
|
* Callback function taking a number as argument and giving no return value.
|
|
21
21
|
* To be called with the new value every time the content of the insulin input field gets changed.
|
|
@@ -255,4 +255,4 @@ export declare function checkCarbohydrates(carbohydrates: number): void;
|
|
|
255
255
|
* 1. Check if forecasted glucose is above very low limit. If it isn’t then throw a ForecastedGlucoseIsVeryLowError().
|
|
256
256
|
* @param forecastGlucoseMmoll The amount of blood glucose in mmol/L that is received from forecast.
|
|
257
257
|
*/
|
|
258
|
-
export declare function checkVeryLowForecastedGlucose(forecast: IForecast |
|
|
258
|
+
export declare function checkVeryLowForecastedGlucose(forecast: IForecast | undefined): void;
|