{"version":3,"file":"_httpParameterReadString.mjs","names":[],"sources":["../../src/internal/_httpParameterReadString.ts"],"sourcesContent":["/**\n * Reads one path parameter as a string.\n *\n * The text `\"null\"` spells `null` only where the parameter's type admits\n * `null`; elsewhere it is the string `\"null\"` (#2450). The emitter passes\n * `false` for a string whose type does not admit `null` and omits the argument\n * otherwise, so code emitted before the parameter existed keeps its reading.\n *\n * @evidence contracts/common.md#principled-implementation The text `null` becomes null only when the parameter's type admits null, which the emitter states with the `nullable` argument, and otherwise the value is returned.\n * @evidence contracts/common.md#clear-and-simple-design One conditional with a default that keeps older emitted code reading as before.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The default is documented and not a hidden toggle.\n * @evidence contracts/common.md#meaningful-documentation The doc explains the nullable parameter and the issue.\n */\nexport const _httpParameterReadString = (\n  value: string,\n  nullable: boolean = true,\n) => (nullable === true && value === \"null\" ? null : value);\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,4BACX,OACA,WAAoB,SAChB,aAAa,QAAQ,UAAU,SAAS,OAAO"}