@types/gfc
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Installation

npm install --save @types/gfc

Summary

This package contains type definitions for gfc (https://github.com/jonschlinkert/gfc).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gfc.

index.d.ts

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

import { ExecException, ExecOptions, ExecSyncOptions } from "child_process";

export = gitFirstCommit;

declare function gitFirstCommit(
    options?: gitFirstCommit.Options<gitFirstCommit.ExecOptionsWithEncoding>,
): Promise<{ stdout: string | Buffer; stderr: string | Buffer }>;
declare function gitFirstCommit(
    cwd: string,
    options?: gitFirstCommit.Options<gitFirstCommit.ExecOptionsWithEncoding>,
): Promise<{ stdout: string | Buffer; stderr: string | Buffer }>;
declare function gitFirstCommit(
    cwd: string,
    callback: (
        error: ExecException | null,
        stdout: string | Buffer,
        stderr: string | Buffer,
    ) => void,
): void;
declare function gitFirstCommit(
    cwd: string,
    options: gitFirstCommit.Options<gitFirstCommit.ExecOptionsWithEncoding>,
    callback: (
        error: ExecException | null,
        stdout: string | Buffer,
        stderr: string | Buffer,
    ) => void,
): void;

declare namespace gitFirstCommit {
    function sync(options?: Options<ExecSyncOptions>): string | Buffer;
    function sync(cwd: string, options?: Options<ExecSyncOptions>): string | Buffer;

    type ExecOptionsWithEncoding = { encoding?: BufferEncoding | "buffer" | null | undefined } & ExecOptions;

    interface Options<TExecOptions> {
        cwd?: string | undefined;
        exec?: TExecOptions | undefined;
        message?: string | undefined;
        file?: { path: string; contents?: string | undefined } | false | undefined;
        commit?: boolean | undefined;
        forceFile?: boolean | undefined;
        remote?: string | undefined;
        push?: boolean | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gfc

Weekly Downloads

3

Version

2.0.4

License

MIT

Unpacked Size

5.92 kB

Total Files

5

Last publish

Collaborators

  • types