Revision 0.10.0

This commit is contained in:
sinclair
2025-06-03 17:12:40 +09:00
parent d428962694
commit 631fab497a
3 changed files with 12 additions and 3 deletions

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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')
})
})