From 631fab497a16871a7c15069b31e4ae6cda9077bd Mon Sep 17 00:00:00 2001 From: sinclair Date: Tue, 3 Jun 2025 17:12:40 +0900 Subject: [PATCH] Revision 0.10.0 --- package-lock.json | 4 ++-- package.json | 2 +- test/typebox-from-valibot.ts | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 134c595..e955693 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sinclair/typemap", - "version": "0.9.1", + "version": "0.10.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sinclair/typemap", - "version": "0.9.1", + "version": "0.10.0", "license": "MIT", "devDependencies": { "@arethetypeswrong/cli": "^0.17.2", diff --git a/package.json b/package.json index d5cca54..e5ed4bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sinclair/typemap", - "version": "0.9.1", + "version": "0.10.0", "description": "Syntax Compiler and Translation System for Runtime Types", "author": "sinclairzx81", "license": "MIT", diff --git a/test/typebox-from-valibot.ts b/test/typebox-from-valibot.ts index aedd8eb..61ad422 100644 --- a/test/typebox-from-valibot.ts +++ b/test/typebox-from-valibot.ts @@ -423,4 +423,13 @@ describe('TypeBox from Valibot', () => { const T = TypeBox(v.void()) Assert.IsTrue(TypeGuard.IsVoid(T)) }) + // ---------------------------------------------------------------- + // Pipe + // ---------------------------------------------------------------- + it('Should map Pipe', () => { + const S = v.pipe(v.literal('hello'), v.length(5)) + const T = TypeBox(S) + Assert.IsTrue(TypeGuard.IsLiteral(T)) + Assert.IsEqual(T.const, 'hello') + }) })