Fixed Joi v2

This commit is contained in:
Felix Kaspar 2023-11-21 14:57:58 +01:00
parent b9b7f0d5ea
commit c45e6c43f2
5 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import * as Joi from 'joi'; import Joi from 'joi';
import { PdfFileSchema } from '../wrappers/PdfFile'; import { PdfFileSchema } from '../wrappers/PdfFile';
export class RecordConstraint { export class RecordConstraint {

View File

@ -1,5 +1,5 @@
import * as Joi from 'joi'; import Joi from 'joi';
import { PDFPage } from 'pdf-lib'; import { PDFPage } from 'pdf-lib';
import { PdfFile, RepresentationType, PdfFileSchema } from '../wrappers/PdfFile'; import { PdfFile, RepresentationType, PdfFileSchema } from '../wrappers/PdfFile';

View File

@ -1,6 +1,6 @@
import { Operator } from "../functions"; import { Operator } from "../functions";
// TODO: Import other Operators (could make this dynamic?) // TODO: Import other Operators (could make this dynamic)
import { Impose } from "../functions/impose"; import { Impose } from "../functions/impose";
export const Operators = { export const Operators = {
Impose: Impose Impose: Impose

View File

@ -1,7 +1,7 @@
import * as PDFJS from 'pdfjs-dist'; import * as PDFJS from 'pdfjs-dist';
import type { PDFDocumentProxy as PDFJSDocument } from 'pdfjs-dist/types/src/display/api'; import type { PDFDocumentProxy as PDFJSDocument } from 'pdfjs-dist/types/src/display/api';
import { PDFDocument as PDFLibDocument } from 'pdf-lib'; import { PDFDocument as PDFLibDocument } from 'pdf-lib';
import * as Joi from 'joi'; import Joi from 'joi';
export enum RepresentationType { export enum RepresentationType {
Uint8Array, Uint8Array,

View File

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"esModuleInterop": true,
"baseUrl": "./src", /* Specify the base directory to resolve non-relative module names. */ "baseUrl": "./src", /* Specify the base directory to resolve non-relative module names. */
"paths": { "paths": {
"#pdfcpu": ["../../shared-operations/src/wasm/pdfcpu/pdfcpu-wrapper.server"], "#pdfcpu": ["../../shared-operations/src/wasm/pdfcpu/pdfcpu-wrapper.server"],