2.3.3 • Published 2 years ago

@types/github-label-sync v2.3.3

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/github-label-sync

Summary

This package contains type definitions for github-label-sync (https://github.com/Financial-Times/github-label-sync).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/github-label-sync.

index.d.ts

// Type definitions for github-label-sync 2.0
// Project: https://github.com/Financial-Times/github-label-sync
// Definitions by: Federico Grandi <https://github.com/EndBug>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface BasicLabel {
    name: string;
    color: string;
    description?: string | undefined;
}

export interface LabelInfo extends BasicLabel {
    aliases?: string[] | undefined;
}

export interface OptionsBase {
    allowAddedLabels?: boolean | undefined;
    dryRun?: boolean | undefined;
    format?: {
        diff?: ((str: string) => string) | undefined
        success?: ((str: string) => string) | undefined
        warning?: ((str: string) => string) | undefined
    } | undefined;
    labels: LabelInfo[];
    log?: {
        info?: ((str: string) => void) | undefined
        warn?: ((str: string) => void) | undefined
    } | undefined;
}

export interface Options extends OptionsBase {
    accessToken: string;
    repo: string;
    endpoint?: string | undefined;
}

export interface DefaultOptions extends Required<OptionsBase> {
    accessToken: null;
    endpoint: null;
    repo: null;
}

export interface LabelDiff {
    name: string;
    type: string;
    actual?: BasicLabel | undefined;
    expected?: BasicLabel | undefined;
}

export const defaults: DefaultOptions;

export default function githubLabelSync(options: Options): Promise<LabelDiff[]>;

Additional Details

  • Last updated: Tue, 18 Jan 2022 23:31:26 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Federico Grandi.

2.3.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.3

2 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

5 years ago