UNPKG

dive-deco

Version:

A TypeScript implementation of decompression calculation algorithms for scuba diving, featuring Bühlmann ZH-L16C algorithm with gradient factors, gas management, and oxygen toxicity tracking.

38 lines (37 loc) 1.36 kB
"use strict"; // Global types for the dive decompression library Object.defineProperty(exports, "__esModule", { value: true }); exports.DecoCalculationError = exports.InertGas = exports.DecoStageType = exports.Units = exports.CeilingType = exports.NDLType = void 0; var NDLType; (function (NDLType) { NDLType["Actual"] = "Actual"; NDLType["ByCeiling"] = "ByCeiling"; })(NDLType || (exports.NDLType = NDLType = {})); var CeilingType; (function (CeilingType) { CeilingType["Actual"] = "Actual"; CeilingType["Adaptive"] = "Adaptive"; })(CeilingType || (exports.CeilingType = CeilingType = {})); var Units; (function (Units) { Units["Metric"] = "Metric"; Units["Imperial"] = "Imperial"; })(Units || (exports.Units = Units = {})); var DecoStageType; (function (DecoStageType) { DecoStageType["Ascent"] = "Ascent"; DecoStageType["DecoStop"] = "DecoStop"; DecoStageType["GasSwitch"] = "GasSwitch"; })(DecoStageType || (exports.DecoStageType = DecoStageType = {})); var InertGas; (function (InertGas) { InertGas["Helium"] = "Helium"; InertGas["Nitrogen"] = "Nitrogen"; })(InertGas || (exports.InertGas = InertGas = {})); class DecoCalculationError extends Error { constructor(message) { super(message); this.name = 'DecoCalculationError'; } } exports.DecoCalculationError = DecoCalculationError;