EndemolShineGroup/cz-github

View on GitHub
src/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Inquirer } from 'inquirer';

export type CommitCallback = (commitMessage: string) => void;
export type Prompter = (cz: Inquirer, commit: CommitCallback) => void;

export interface CommitizenConfig {
  [key: string]: string | AdapterConfig | undefined;
  path: string;
  '@endemolshinegroup/cz-github'?: AdapterConfig;
}

export interface AdapterConfig {
  scopes?: {
    [key: string]: string;
  };
}

export interface PackageJson {
  name: string;
}