Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Nov 23, 2018
1 parent 7897feb commit 24280c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,9 @@ export class IntersectionType<RTS extends Array<Any>, A = any, O = A, I = mixed>
}
}

// used in `intersection` as a workaround for #234
export type Compact<A> = { [K in keyof A]: A[K] }

export function intersection<A extends Mixed, B extends Mixed, C extends Mixed, D extends Mixed, E extends Mixed>(
types: [A, B, C, D, E],
name?: string
Expand Down

0 comments on commit 24280c1

Please sign in to comment.