greenmotion-wasm
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -34,1 +34,29 @@ let wasm; | ||
/** | ||
* @param {number} gallons | ||
* @returns {number} | ||
*/ | ||
export function calculateEmissions(gallons) { | ||
const ret = wasm.calculateEmissions(gallons); | ||
return ret; | ||
} | ||
/** | ||
* @param {number} vehicle_distance | ||
* @returns {number} | ||
*/ | ||
export function calculateCarJoules(vehicle_distance) { | ||
const ret = wasm.calculateCarJoules(vehicle_distance); | ||
return ret; | ||
} | ||
/** | ||
* @param {number} car_joules | ||
* @param {number} pedestrian_calories | ||
* @returns {number} | ||
*/ | ||
export function calculateWastedJoules(car_joules, pedestrian_calories) { | ||
const ret = wasm.calculateWastedJoules(car_joules, pedestrian_calories); | ||
return ret; | ||
} | ||
@@ -19,1 +19,17 @@ /* tslint:disable */ | ||
export function secondsToMinutes(seconds: number): number; | ||
/** | ||
* @param {number} gallons | ||
* @returns {number} | ||
*/ | ||
export function calculateEmissions(gallons: number): number; | ||
/** | ||
* @param {number} vehicle_distance | ||
* @returns {number} | ||
*/ | ||
export function calculateCarJoules(vehicle_distance: number): number; | ||
/** | ||
* @param {number} car_joules | ||
* @param {number} pedestrian_calories | ||
* @returns {number} | ||
*/ | ||
export function calculateWastedJoules(car_joules: number, pedestrian_calories: number): number; |
{ | ||
"name": "greenmotion-wasm", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "greenmotion_wasm_bg.wasm", |
Sorry, the diff of this file is not supported yet
3172
92