{"version":3,"file":"_httpQueryReadString.mjs","names":[],"sources":["../../src/internal/_httpQueryReadString.ts"],"sourcesContent":["/**\n * Reads one query value as a string.\n *\n * The text `\"null\"` spells `null` only where the property's type admits `null`;\n * elsewhere it is the string `\"null\"` (#2450). The emitter passes `false` for a\n * string whose type does not admit `null` and omits the argument otherwise, so\n * code emitted before the parameter existed keeps its reading.\n *\n * @evidence contracts/common.md#principled-implementation A missing value is absent and the text `null` becomes null only when the property's type admits null, which the emitter states with the `nullable` argument.\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 _httpQueryReadString = (\n  str: string | null,\n  nullable: boolean = true,\n): string | null | undefined =>\n  str === null ? undefined : nullable === true && str === \"null\" ? null : str;\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,wBACX,KACA,WAAoB,SAEpB,QAAQ,OAAO,KAAA,IAAY,aAAa,QAAQ,QAAQ,SAAS,OAAO"}