© 2026 Hedgehog Software, LLC
string | undefined
undefined
export const myFunction = ( { value1 }: { value1?: string }, value2?: string ) => { if (!value1 && !value2) { throw new Error("No value provided."); } return value1 ?? value2; };