@types/issue-parser

v3.0.5
  • Types
  • ESM
  • CJS

TypeScript definitions for issue-parser

License
MIT
Deps
0
Install Size
5.5 kB/-
Vulns
0
Published

Get started

$npm install @types/issue-parser
$pnpm add @types/issue-parser
$yarn add @types/issue-parser
$bun add @types/issue-parser
$deno add npm:@types/issue-parser
$vlt install @types/issue-parser
# Usually installed as a dev dependency
$npm install -D @types/issue-parser
$pnpm add -D @types/issue-parser
$yarn add -D @types/issue-parser
$bun add -d @types/issue-parser
$deno add -D npm:@types/issue-parser
$vlt install -D @types/issue-parser

Readme

Installation

npm install --save @types/issue-parser

Summary

This package contains type definitions for issue-parser (https://github.com/pvdlg/issue-parser#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/issue-parser.

index.d.ts

declare function issueParser(
    authOptions?: issueParser.Options,
    extension?: issueParser.Overrides,
): issueParser.Parser;

declare namespace issueParser {
    type Parser = (text: string) => Result;
    interface Overrides {
        actions?: {
            [type: string]: readonly string[];
        } | undefined;
        delimiters?: string | readonly string[] | undefined;
        mentionsPrefixes?: string | readonly string[] | undefined;
        issuePrefixes?: string | readonly string[] | undefined;
        hosts?: string | readonly string[] | undefined;
        issueURLSegments?: string | readonly string[] | undefined;
        overrides?: string | readonly string[] | undefined;
    }
    type Options = "github" | "gitlab" | "bitbucket" | "waffle" | Overrides;
    interface Reference {
        raw: string;
        slug: string | undefined;
        prefix: string | undefined;
        issue: string;
    }
    interface Mention {
        raw: string;
        prefix: string;
        user: string;
    }
    interface Action {
        raw: string;
        action: string;
        slug: string | undefined;
        prefix: string | undefined;
        issue: string;
    }
    interface Actions {
        [action: string]: readonly Action[];
    }
    interface Result {
        refs: readonly Reference[];
        mentions: readonly Mention[];
        actions: Actions;
        allRefs: Array<Reference | Action>;
    }
}

export = issueParser;
Additional Details
  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by Leko.

Weekly DownloadsAcross all versions

Versions

3.0.5
latestts4.5ts4.6ts4.7ts4.8ts4.9ts5.0ts5.1ts5.2ts5.3ts5.4ts5.5ts5.6ts5.7ts5.8ts5.9ts6.0
3.0.1
ts3.6ts3.7ts3.8ts3.9ts4.0ts4.1ts4.2ts4.3ts4.4
3.0.0
ts2.2ts2.3ts2.4ts2.5ts2.6ts2.7ts2.8ts2.9ts3.0ts3.1ts3.2ts3.3ts3.4ts3.5