Type Alias Result

Result: {
    date: Date;
    preview?: string;
    source: {
        filter?: (...args: [string, ...unknown[]]) => boolean;
        title: string;
        url: string;
    };
    title: string;
    url: string;
}[]

A list of results

Type declaration

  • date: Date

    The date of the entry

  • Optionalpreview?: string

    A preview of the entry. This may contain sanitized HTML.

  • source: {
        filter?: (...args: [string, ...unknown[]]) => boolean;
        title: string;
        url: string;
    }

    The source the entry is from

    • Optionalfilter?: (...args: [string, ...unknown[]]) => boolean

      Takes a entry preview and returns whether or not it should be displayed

    • title: string

      A title to describe the feed

    • url: string

      The URL of an RSS feed

  • title: string

    The title of the entry

  • url: string

    A direct link to the entry