mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-06 12:27:45 +00:00
47 lines
752 B
TypeScript
47 lines
752 B
TypeScript
declare module 'git-log-parser' {
|
|
import {
|
|
SpawnOptions,
|
|
SpawnOptionsWithoutStdio,
|
|
SpawnOptionsWithStdioTuple,
|
|
} from 'child_process'
|
|
|
|
interface Config {
|
|
commit: {
|
|
long: 'H'
|
|
short: 'h'
|
|
}
|
|
tree: {
|
|
long: 'T'
|
|
short: 't'
|
|
}
|
|
author: {
|
|
name: 'an'
|
|
email: 'ae'
|
|
date: {
|
|
key: 'ai'
|
|
type: Date
|
|
}
|
|
}
|
|
committer: {
|
|
name: 'cn'
|
|
email: 'ce'
|
|
date: {
|
|
key: 'ci'
|
|
type: Date
|
|
}
|
|
}
|
|
subject: 's'
|
|
body: 'b'
|
|
}
|
|
|
|
export function parse(
|
|
config: object,
|
|
options?:
|
|
| SpawnOptionsWithoutStdio
|
|
| SpawnOptionsWithStdioTuple
|
|
| SpawnOptions,
|
|
): NodeJS.ReadableStream
|
|
|
|
export const fields: Config
|
|
}
|