Skip to content

Commit e93f513

Browse files
committed
Updated imports and exports
1 parent 5f5d470 commit e93f513

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/validation/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
export { validate } from './validate';
1+
export { validate } from './validate.js';
22
export { SchemaValidationError } from './errors.js';
3+
export { validator } from './decorator.js';

packages/validation/src/validate.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { search } from '@aws-lambda-powertools/jmespath';
2-
import Ajv, { type ValidateFunction } from 'ajv';
2+
import { Ajv, type ValidateFunction } from 'ajv';
33
import { SchemaValidationError } from './errors.js';
44
import type { ValidateParams } from './types.js';
55

6-
export function validate<T = unknown>(params: ValidateParams<T>): T {
6+
export function validate<T = unknown>(params: ValidateParams): T {
77
const { payload, schema, envelope, formats, externalRefs, ajv } = params;
88
const ajvInstance = ajv || new Ajv({ allErrors: true });
99

0 commit comments

Comments
 (0)