16 lines
360 B
TypeScript
16 lines
360 B
TypeScript
declare module 'gitdown' {
|
|
interface Gitdown {
|
|
setConfig: (info: {
|
|
gitinfo: {
|
|
defaultBranchName: string,
|
|
gitPath: string
|
|
}
|
|
}) => void
|
|
get: () => string
|
|
registerHelper: (name: string, helper: {
|
|
compile: () => string
|
|
weight?: number
|
|
}) => void
|
|
}
|
|
export function readFile(path: string): Gitdown
|
|
}
|