@types/git-raw-commits
TypeScript definitions for git-raw-commits
Last updated 6 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/git-raw-commits 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/git-raw-commits

Summary

This package contains type definitions for git-raw-commits (https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-raw-commits#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-raw-commits.

index.d.ts

// Type definitions for git-raw-commits 2.0
// Project: https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-raw-commits#readme
// Definitions by: Jason Kwok <https://github.com/JasonHK>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7

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

import * as Stream from "stream";

/**
 * Returns a readable stream. Stream is split to break on each commit.
 *
 * @param gitOpts
 * @param execOpts Options to pass to `git` `childProcess`.
 */
declare function gitRawCommits(gitOptions: gitRawCommits.GitOptions, execOptions?: gitRawCommits.ExecOptions): Stream.Readable;

declare namespace gitRawCommits {
    /**
     * Options to pass to `git` `childProcess`.
     */
    interface ExecOptions {
        /**
         * Current working directory to execute git in.
         */
        cwd?: string | undefined;
    }

    /**
     * Please check the available options at http://git-scm.com/docs/git-log.
     *
     * @remarks
     * Single dash arguments are not supported because of https://github.com/sindresorhus/dargs/blob/master/index.js#L5.
     *
     * @remarks
     * For `<revision range>` we can also use `<from>..<to>` pattern, and this
     * module has the following extra options for shortcut of this pattern:
     *
     * * `from`
     * * `to`
     *
     * This module also have the following additions:
     *
     * * `format`
     * * `debug`
     * * `path`
     */
    interface GitOptions {
        /**
         * @default
         * ''
         */
        from?: string | undefined;

        /**
         * @default
         * 'HEAD'
         */
        to?: string | undefined;

        /**
         * Please check http://git-scm.com/docs/git-log for format options.
         *
         * @default
         * '%B'
         */
        format?: string | undefined;

        /**
         * A function to get debug information.
         */
        debug?: ((message: any) => void) | undefined;

        /**
         * Filter commits to the path provided.
         */
        path?: string | undefined;

        [options: string]: any;
    }
}

export = gitRawCommits;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:08 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Jason Kwok.

Current Tags

  • 2.0.1                                ...           latest (5 years ago)
  • 2.0.0                                ...           ts2.8 (6 years ago)
  • 2.0.0                                ...           ts2.9 (6 years ago)
  • 2.0.0                                ...           ts3.0 (6 years ago)
  • 2.0.0                                ...           ts3.1 (6 years ago)
  • 2.0.0                                ...           ts3.2 (6 years ago)
  • 2.0.0                                ...           ts3.3 (6 years ago)
  • 2.0.0                                ...           ts3.4 (6 years ago)
  • 2.0.0                                ...           ts3.5 (6 years ago)
  • 2.0.1                                ...           ts3.6 (5 years ago)
  • 2.0.1                                ...           ts3.7 (5 years ago)
  • 2.0.1                                ...           ts3.8 (5 years ago)
  • 2.0.1                                ...           ts3.9 (5 years ago)
  • 2.0.1                                ...           ts4.0 (5 years ago)
  • 2.0.1                                ...           ts4.1 (5 years ago)
  • 2.0.1                                ...           ts4.2 (5 years ago)
  • 2.0.1                                ...           ts4.3 (5 years ago)
  • 2.0.1                                ...           ts4.4 (5 years ago)
  • 2.0.1                                ...           ts4.5 (5 years ago)
  • 2.0.1                                ...           ts4.6 (5 years ago)
  • 2.0.1                                ...           ts4.7 (5 years ago)
  • 2.0.1                                ...           ts4.8 (5 years ago)
  • 2.0.1                                ...           ts4.9 (5 years ago)
  • 2.0.1                                ...           ts5.0 (5 years ago)
  • 2.0.1                                ...           ts5.1 (5 years ago)

2 Versions

  • 2.0.0                                ...           6 years ago
  • 2.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |