Skip to content

findNoPriorityWinnerReason

Explains why the priority list named no owner for an attachment.

Only meaningful once pickHighestPriorityNotePath has returned null (or the list was empty and was never consulted); it mirrors that function’s own conditions rather than re-deciding anything, so the two can only ever agree.

Import:

import { findNoPriorityWinnerReason } from 'obsidian-dev-utils/obsidian/note-priority';

Signature:

function findNoPriorityWinnerReason(params: FindNoPriorityWinnerReasonParams): NoPriorityWinnerReason

Parameters:

ParameterTypeDescription
paramsFindNoPriorityWinnerReasonParamsThe priority list, the referencing notes, and how to rank one.

Returns: NoPriorityWinnerReason — Which of the three ways the list failed to settle it.


Links to this page: