aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 333 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.lit=lit;var errors_1=()=>{var tmp=require("../errors");return errors_1=()=>tmp,tmp};function lit(x){if(x.length!==1)throw new(errors_1()).AssumptionError("NotLiteral",`String literal may not contain any variables, got \`${x.join("${...}")}\``);return x[0]}