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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user