UNPKG

@httpx/assert

Version:
2 lines 378 B
import {getTypeInfo}from'./getTypeInfo.mjs';var a="Value is expected to be",p=new Set(["a","e","i","o","u","y","h"]),f=(o,e,t)=>{let{pfx:n=true}=t??{},r=p.has((o?.[0]??"").toLowerCase())?"an":"a";return `${n?`${a} ${r} `:""}${o}, got: ${getTypeInfo(e)}`};export{a as errPfx,f as formatErrMsg};//# sourceMappingURL=errorMessages.mjs.map //# sourceMappingURL=errorMessages.mjs.map