mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fix all type errors
This commit is contained in:
@@ -2,6 +2,7 @@ const storeDir = process.env.JSON_STORE || '/tmp/pdfer-store/'
|
||||
|
||||
import { promisify } from 'util'
|
||||
|
||||
// @ts-ignore
|
||||
import JsonStore from 'json-fs-store'
|
||||
|
||||
const store = JsonStore(storeDir)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { IDocProps } from '../interfaces/IDocProps'
|
||||
|
||||
function convertLineBreaks(lines: string) {
|
||||
return lines.replace(/\n/g, '\\\\')
|
||||
}
|
||||
|
||||
export function brief(options: Record<string, string>) {
|
||||
export function brief(options: IDocProps) {
|
||||
const {
|
||||
template = 'brief-fam',
|
||||
subject = '',
|
||||
@@ -21,7 +23,7 @@ export function brief(options: Record<string, string>) {
|
||||
closing = 'Mit freundlichen Grüßen',
|
||||
ps = '',
|
||||
enclosing = '',
|
||||
} = options
|
||||
} = { ...options }
|
||||
|
||||
return `% brief document
|
||||
\\documentclass{scrlttr2}
|
||||
|
||||
Reference in New Issue
Block a user