/** * @typedef {import('../types.js').Context} Context * @typedef {import('../types.js').Options} Options */ /** * @param {Context} context * @returns {Exclude} */ export function checkBulletOrdered(context) { const marker = context.options.bulletOrdered || '.' if (marker !== '.' && marker !== ')') { throw new Error( 'Cannot serialize items with `' + marker + '` for `options.bulletOrdered`, expected `.` or `)`' ) } return marker }