diff --git a/package-lock.json b/package-lock.json index 29fffb2..fc2d5d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sinclair/typemap", - "version": "0.8.11", + "version": "0.8.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sinclair/typemap", - "version": "0.8.11", + "version": "0.8.12", "license": "MIT", "devDependencies": { "@arethetypeswrong/cli": "^0.17.2", diff --git a/package.json b/package.json index 8b58a7e..8c4e220 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sinclair/typemap", - "version": "0.8.11", + "version": "0.8.12", "description": "Syntax, Compiler and Translation System for Runtime Types", "author": "sinclairzx81", "license": "MIT", diff --git a/src/syntax/syntax-from-typebox.ts b/src/syntax/syntax-from-typebox.ts index f8087e8..057ff8d 100644 --- a/src/syntax/syntax-from-typebox.ts +++ b/src/syntax/syntax-from-typebox.ts @@ -70,7 +70,7 @@ type TFromArray}[]` > = Result function FromArray(type: t.TSchema): string { - return `${type}[]` + return `${FromType(type)}[]` } // ------------------------------------------------------------------ // BigInt @@ -272,7 +272,7 @@ type TFromTuple = ( ) function FromTuple(types: t.TSchema[]): string { const result = types.map((type) => FromType(type)) - return `[${FromDelimited(result, Comma)}]` + return `[${FromDelimited(result, `${Comma} `)}]` } // ------------------------------------------------------------------ // Undefined