weasel API - v0.8.0
    Preparing search index...

    Interface ContentHandlerEntry

    interface ContentHandlerEntry {
        id: string;
        match: string | string[] | ((item: IngestItem) => boolean);
        priority?: number;
        handle(items: IngestItem[], ctx: IngestCtx): void | Promise<void>;
    }
    Index

    Properties

    Methods

    Properties

    id: string

    Stable identifier — used for unregistration and debugging ('kit:image', 'app:csv').

    match: string | string[] | ((item: IngestItem) => boolean)

    MIME glob(s) ('image/*', 'text/csv') or an item predicate.

    priority?: number

    Higher runs earlier. Kit defaults register at -100 so any consumer handler (default 0) beats them.

    Methods