fix all type errors

This commit is contained in:
Thomas Ruoff
2021-02-15 23:29:25 +01:00
parent 85a7b54a13
commit 3386fb3928
14 changed files with 123 additions and 132 deletions

View File

@@ -1,3 +1,4 @@
import { IDocProps } from '../interfaces/IDocProps'
import { ILatest } from '../interfaces/ILatest'
function checkStatus(res: Response) {
@@ -6,7 +7,7 @@ function checkStatus(res: Response) {
}
}
export async function generatePdf(state: Record<string, string>) {
export async function generatePdf(state: IDocProps) {
const options = {
method: 'POST',
headers: {