From 24280c18abd1fcb8a46cb174021faf0a17d38ae3 Mon Sep 17 00:00:00 2001 From: gcanti Date: Fri, 23 Nov 2018 08:03:04 +0100 Subject: [PATCH] bump version --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/index.ts | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c9a456a4..a680c99a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ **Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a high state of flux, you're at risk of it changing without notice. +# 1.4.2 + +use `Compact` in `intersection` signatures as a workaround for #234 (@sledorze) + # 1.4.1 - **Polish** diff --git a/package.json b/package.json index cffb003b0..59c67ef71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "io-ts", - "version": "1.4.1", + "version": "1.4.2", "description": "TypeScript compatible runtime type system for IO validation", "files": [ "lib" diff --git a/src/index.ts b/src/index.ts index 216287284..3a3d03c81 100644 --- a/src/index.ts +++ b/src/index.ts @@ -829,7 +829,9 @@ export class IntersectionType, A = any, O = A, I = mixed> } } +// used in `intersection` as a workaround for #234 export type Compact = { [K in keyof A]: A[K] } + export function intersection( types: [A, B, C, D, E], name?: string