mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fix some type errors
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
function convertLineBreaks(string) {
|
||||
return string.replace(/\n/g, '\\\\')
|
||||
function convertLineBreaks(lines: string) {
|
||||
return lines.replace(/\n/g, '\\\\')
|
||||
}
|
||||
|
||||
export function brief(options) {
|
||||
export function brief(options: Record<string, string>) {
|
||||
const {
|
||||
template = 'brief-fam',
|
||||
subject = '',
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import path from 'path'
|
||||
|
||||
export function getDirPath(id) {
|
||||
export function getDirPath(id: string) {
|
||||
return `/tmp/pdfer-${id}`
|
||||
}
|
||||
|
||||
export function getDocPath(id) {
|
||||
export function getDocPath(id: string) {
|
||||
return path.join(getDirPath(id), 'doc.tex')
|
||||
}
|
||||
|
||||
export function getPdfPath(id) {
|
||||
export function getPdfPath(id: string) {
|
||||
return path.join(getDirPath(id), 'doc.pdf')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user