Files
form/scripts/git-log-parser.d.ts
2023-09-08 23:32:09 -07:00

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
}