/** * Internal helpers shared across the SDK. */ /** * Throws an error when an unexpected value is encountered. This is used to ensure all code paths * are covered when using discriminated unions. */ export function unreachable(value: never): never { throw new Error( `[notion-custom-sdk] Unexpected value encountered: ${JSON.stringify(value)}`, ) }