@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
18 lines • 673 B
TypeScript
import { ConditionValueExplain } from '../../explain/statementExplain.js';
/**
* Parse a string to a number, returns undefined if the string is not a number
*
* @param value the string to parse
* @returns the number or undefined
*/
export declare function parseNumber(value: string): number | undefined;
/**
* Test two values to see if they are numbers, if they are, run the check function
*
* @param policyValue
* @param testValue
* @param check
* @returns
*/
export declare function checkIfNumeric(policyValue: string, testValue: string, check: (policyValue: number, testValue: number) => boolean): ConditionValueExplain;
//# sourceMappingURL=numeric.d.ts.map