<commit_before>// Type definitions for jquery-visible
// Project: https://github.com/customd/jquery-visible
// Definitions by: <NAME> <https://github.com/Litee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../jquery/jquery.d.ts" />

interface JQuery {
   /**
    * Gets the value of a setting.
    * @param details Which setting to consider.
    * @param callback The callback parameter should be a function that looks like this:
    * function(object details) {...};
    */
	visible(partial?: boolean, hidden?: boolean, direction?: string): boolean;
}
<commit_msg>Made direction parameter more specific by using string literal typing<commit_after>// Type definitions for jquery-visible
// Project: https://github.com/customd/jquery-visible
// Definitions by: <NAME> <https://github.com/Litee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../jquery/jquery.d.ts" />

type Direction = "horizontal" | "vertical" | "both";

interface JQuery {
   /**
    * Gets the value of a setting.
    * @param details Which setting to consider.
    * @param callback The callback parameter should be a function that looks like this:
    * function(object details) {...};
    */
    visible(partial?: boolean, hidden?: boolean, direction?: Direction): boolean;
}

{'fraction_non_alphanumeric': 0.13943028485757122, 'fraction_numerical': 0.0, 'mean_word_length': 3.667832167832168, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2981022', 'n_tokens_mistral': 365, 'n_tokens_neox': 367, 'n_words': 116}