Interface HackerNewsNodeParameters

Source
interface HackerNewsNodeParameters {
    additionalFields?:
        | { includeComments?: boolean }
        | {
            keyword?: string;
            tags?: (
                | "comment"
                | "ask_hn"
                | "front_page"
                | "poll"
                | "show_hn"
                | "story"
            )[];
        };
    articleId?: string;
    limit?: number;
    operation?: "get"
    | "getAll";
    resource?: "all" | "user" | "article";
    returnAll?: boolean;
    username?: string;
}

Properties§

Source§

readonly additionalFields?:
    | { includeComments?: boolean }
    | {
        keyword?: string;
        tags?: (
            | "comment"
            | "ask_hn"
            | "front_page"
            | "poll"
            | "show_hn"
            | "story"
        )[];
    }

Default: {}

Source§

readonly articleId?: string

The ID of the Hacker News article to be returned

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1}

Source§

readonly operation?: "get" | "getAll"

Default: "getAll"

Source§

readonly resource?: "all" | "user" | "article"

Default: "article"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly username?: string

The Hacker News user to be returned