1 |
|
2 |
|
3 | import * as Stream from "stream";
|
4 |
|
5 | import {
|
6 | Context,
|
7 | GitRawCommitsOptions,
|
8 | Options as BaseOptions,
|
9 | ParserOptions,
|
10 | WriterOptions,
|
11 | } from "conventional-changelog-core";
|
12 | import { Context as WriterContext } from "conventional-changelog-writer";
|
13 | import { Commit } from "conventional-commits-parser";
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | declare function conventionalChangelog<TCommit extends Commit = Commit, TContext extends WriterContext = Context>(
|
25 | options?: Options<TCommit, TContext>,
|
26 | context?: Partial<TContext>,
|
27 | gitRawCommitsOpts?: GitRawCommitsOptions,
|
28 | parserOpts?: ParserOptions,
|
29 | writerOpts?: WriterOptions<TCommit, TContext>,
|
30 | ): Stream.Readable;
|
31 |
|
32 | declare namespace conventionalChangelog {
|
33 | |
34 |
|
35 |
|
36 |
|
37 | interface Options<TCommit extends Commit = Commit, TContext extends WriterContext = WriterContext>
|
38 | extends BaseOptions<TCommit, TContext>
|
39 | {
|
40 | |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | preset?: string | undefined;
|
52 | }
|
53 | }
|
54 |
|
55 | type Options<TCommit extends Commit = Commit, TContext extends WriterContext = WriterContext> =
|
56 | conventionalChangelog.Options<TCommit, TContext>;
|
57 |
|
58 | export = conventionalChangelog;
|