Skip to content

Commit bbcdc96

Browse files
committed
fix import
1 parent e9c3e69 commit bbcdc96

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/input_schema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { existsSync, writeFileSync } from 'node:fs';
22
import { join } from 'node:path';
33

4+
import type { Ajv, ErrorObject } from 'ajv';
45
import { cloneDeep } from 'es-toolkit';
56

67
import { KEY_VALUE_STORE_KEYS } from '@apify/consts';
@@ -293,7 +294,7 @@ export const getDefaultsFromInputSchema = (inputSchema: any) => {
293294
return defaults;
294295
};
295296

296-
function formatSchemaValidationErrors(errors: import('ajv').ErrorObject[], schemaName: string): string {
297+
function formatSchemaValidationErrors(errors: ErrorObject[], schemaName: string): string {
297298
const details = errors
298299
.map((err) => {
299300
const path = err.instancePath ? ` at ${err.instancePath}` : '';
@@ -326,7 +327,7 @@ export function validateKvsSchema(schema: Record<string, unknown>): void {
326327
}
327328

328329
// Lots of code copied from @apify-packages/actor, this really should be moved to the shared input_schema package
329-
export const getAjvValidator = (inputSchema: any, ajvInstance: import('ajv').Ajv) => {
330+
export const getAjvValidator = (inputSchema: any, ajvInstance: Ajv) => {
330331
const copyOfSchema = cloneDeep(inputSchema);
331332
copyOfSchema.required = [];
332333

0 commit comments

Comments
 (0)