Skip to content

Commit

Permalink
better mash types
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes committed May 12, 2021
1 parent 38eaaef commit 90a4ce3
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/lib/types/mash.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import { TemperatureMeasurement } from './measurement';
import { TemperatureMeasurement, TimeMeasurement } from './measurement';

export type MashProfile = {
schedule: MashSchedule;
};

export type MashRest = {
type: RestType;
temperature: TemperatureMeasurement;
minutes: number;
time: TimeMeasurement;
};

export type MashSchedule = {
efficiency: number;
method: string;
method: MashMethod;
rests: MashRest[];
sparge: string;
sparge: SpargeMethod;
recirculated: boolean;
};

export enum MashMethod {
Expand All @@ -27,3 +29,13 @@ export enum SpargeMethod {
Batch = 'batch sparge',
Fly = 'fly sparge',
}

export enum RestType {
Acid = 'acid',
AlphaAmylase = 'alpha amylase',
BetaAmylase = 'beta amylase',
BetaGlucanase = 'beta glucanase',
Decoction = 'decoction',
FerulicAcid = 'ferulic acid',
Protease = 'protease',
}

0 comments on commit 90a4ce3

Please sign in to comment.