Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

git-log-parser.d.ts

46 lines752 Bytes

1declare module 'git-log-parser' {
2 import {
3 SpawnOptions,
4 SpawnOptionsWithoutStdio,
5 SpawnOptionsWithStdioTuple,
6 } from 'child_process'
7​
8 interface Config {
9 commit: {
10 long: 'H'
11 short: 'h'
12 }
13 tree: {
14 long: 'T'
15 short: 't'
16 }
17 author: {
18 name: 'an'
19 email: 'ae'
20 date: {
21 key: 'ai'
22 type: Date
23 }
24 }
25 committer: {
26 name: 'cn'
27 email: 'ce'
28 date: {
29 key: 'ci'
30 type: Date
31 }
32 }
33 subject: 's'
34 body: 'b'
35 }
36​
37 export function parse(
38 config: object,
39 options?:
40 | SpawnOptionsWithoutStdio
41 | SpawnOptionsWithStdioTuple
42 | SpawnOptions,
43 ): NodeJS.ReadableStream
44​
45 export const fields: Config