From 9aef7bdaa9d7b809b973f7776f0564bd8378d538 Mon Sep 17 00:00:00 2001 From: Thomas Cruveilher <38007824+Sorikairox@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:51:10 +0000 Subject: [PATCH] feat: export validation and fix type --- deno.json | 5 +++-- src/metadata/helper.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index 022c9744..83414674 100644 --- a/deno.json +++ b/deno.json @@ -1,9 +1,10 @@ { "name": "@danet/core", - "version": "2.4.1", + "version": "2.4.2", "exports": { ".": "./mod.ts", - "./metadata": "./src/metadata/mod.ts" + "./metadata": "./src/metadata/mod.ts", + "./validation": "./validation.ts" }, "lint": { "include": [ diff --git a/src/metadata/helper.ts b/src/metadata/helper.ts index 7603bdba..e46c8b97 100644 --- a/src/metadata/helper.ts +++ b/src/metadata/helper.ts @@ -23,7 +23,7 @@ export class MetadataHelper { value: unknown, target: unknown, property?: string | symbol, - ) { + ): void { if (property) { return Reflect.defineMetadata(key, value, target, property); }