<commit_before>// Type definitions for node-schedule 1.2
// Project: https://github.com/tejasmanohar/node-schedule/
// Definitions by: <NAME> <https://github.com/cyrilschumacher>, <NAME> <https://github.com/flowpl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import { EventEmitter } from 'events';

/** The callback executed by a Job */
export type JobCallback = () => void;

/** Scheduler jobs. */
export class Job extends EventEmitter {
    readonly name: string;

    /**
     * Use the function scheduleJob() to create new Job objects.
     *
     * @internal
     * @param name     either an optional name for this Job or this Job's callback
     * @param job      either this Job's callback or an optional callback function
     * @param callback optional callback that is executed right before the JobCallback
     */<commit_msg>@types/node-schedule: Add an optional parameter to the type `JobCallback` (#22606)<commit_after>// Type definitions for node-schedule 1.2
// Project: https://github.com/tejasmanohar/node-schedule/
// Definitions by: <NAME> <https://github.com/cyrilschumacher>, <NAME> <https://github.com/flowpl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import { EventEmitter } from 'events';

/** The callback executed by a Job */
export type JobCallback = (fireDate: Date) => void;

/** Scheduler jobs. */
export class Job extends EventEmitter {
    readonly name: string;

    /**
     * Use the function scheduleJob() to create new Job objects.
     *
     * @internal
     * @param name     either an optional name for this Job or this Job's callback
     * @param job      either this Job's callback or an optional callback function
     * @param callback optional callback that is executed right before the JobCallback
     */
{'fraction_non_alphanumeric': 0.1156936261381896, 'fraction_numerical': 0.0048205677557579, 'mean_word_length': 3.3543123543123543, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 8, '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': '6062534', 'n_tokens_mistral': 510, 'n_tokens_neox': 505, 'n_words': 185}