1 | # Installation
|
2 | > `npm install --save @types/conventional-changelog`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for conventional-changelog (https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/conventional-changelog.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/conventional-changelog/index.d.ts)
|
10 | ````ts
|
11 | /// <reference types="node" />
|
12 |
|
13 | import * as Stream from "stream";
|
14 |
|
15 | import {
|
16 | Context,
|
17 | GitRawCommitsOptions,
|
18 | Options as BaseOptions,
|
19 | ParserOptions,
|
20 | WriterOptions,
|
21 | } from "conventional-changelog-core";
|
22 | import { Context as WriterContext } from "conventional-changelog-writer";
|
23 | import { Commit } from "conventional-commits-parser";
|
24 |
|
25 | /**
|
26 | * Returns a readable stream.
|
27 | *
|
28 | * @param options
|
29 | * @param context
|
30 | * @param gitRawCommitsOpts
|
31 | * @param parserOpts
|
32 | * @param writerOpts
|
33 | */
|
34 | declare function conventionalChangelog<TCommit extends Commit = Commit, TContext extends WriterContext = Context>(
|
35 | options?: Options<TCommit, TContext>,
|
36 | context?: Partial<TContext>,
|
37 | gitRawCommitsOpts?: GitRawCommitsOptions,
|
38 | parserOpts?: ParserOptions,
|
39 | writerOpts?: WriterOptions<TCommit, TContext>,
|
40 | ): Stream.Readable;
|
41 |
|
42 | declare namespace conventionalChangelog {
|
43 | /**
|
44 | * See the [conventional-changelog-core](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-core)
|
45 | * docs. The API is the same with the following changes or additions:
|
46 | */
|
47 | interface Options<TCommit extends Commit = Commit, TContext extends WriterContext = WriterContext>
|
48 | extends BaseOptions<TCommit, TContext>
|
49 | {
|
50 | /**
|
51 | * It's recommended to use a preset so you don't have to define everything
|
52 | * yourself. Presets are names of built-in `config`.
|
53 | *
|
54 | * A scoped preset package such as `@scope/conventional-changelog-custom-preset`
|
55 | * can be used by passing `@scope/custom-preset` to this option.
|
56 | *
|
57 | * @remarks
|
58 | * `options.config` will be overwritten by the values of preset. You should use
|
59 | * either `preset` or `config`, but not both.
|
60 | */
|
61 | preset?: string | undefined;
|
62 | }
|
63 | }
|
64 |
|
65 | type Options<TCommit extends Commit = Commit, TContext extends WriterContext = WriterContext> =
|
66 | conventionalChangelog.Options<TCommit, TContext>;
|
67 |
|
68 | export = conventionalChangelog;
|
69 |
|
70 | ````
|
71 |
|
72 | ### Additional Details
|
73 | * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
74 | * Dependencies: [@types/conventional-changelog-core](https://npmjs.com/package/@types/conventional-changelog-core), [@types/conventional-changelog-writer](https://npmjs.com/package/@types/conventional-changelog-writer), [@types/conventional-commits-parser](https://npmjs.com/package/@types/conventional-commits-parser), [@types/node](https://npmjs.com/package/@types/node)
|
75 |
|
76 | # Credits
|
77 | These definitions were written by [Jason Kwok](https://github.com/JasonHK).
|
78 |
|
\ | No newline at end of file |