Skip to content

Instantly share code, notes, and snippets.

@GeeWee
Created May 18, 2018 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeeWee/281e21942c4850314c2a7826790b0256 to your computer and use it in GitHub Desktop.
Save GeeWee/281e21942c4850314c2a7826790b0256 to your computer and use it in GitHub Desktop.
function waterBoiler(){
const water: string = axios.get("https://somethingFromSomeApi.com/something").data.water
const potIdForWater: string = axios.get("https://somethingFromSomeOtherApi.com/adress").data.potId
const temperature: string = getTemperatureToBoilAt();
const heatedWater: string = getHeatedWater(water, temperature)
sendBoilingWaterToThePot(potIdForWater, heatedWater);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment