From 81c3052992771234effeb95ed084ae6a7ab5735a Mon Sep 17 00:00:00 2001 From: Yifan Gu Date: Fri, 19 Aug 2022 15:21:53 -0400 Subject: [PATCH 1/2] allow longer unions --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index d39506e..3f0ae0f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -452,6 +452,8 @@ export namespace M { export function union(t1: Marshaller, t2: Marshaller, t3: Marshaller, t4: Marshaller, t5: Marshaller, t6: Marshaller, t7: Marshaller, t8: Marshaller): Marshaller; export function union(t1: Marshaller, t2: Marshaller, t3: Marshaller, t4: Marshaller, t5: Marshaller, t6: Marshaller, t7: Marshaller, t8: Marshaller, t9: Marshaller): Marshaller; export function union(t1: Marshaller, t2: Marshaller, t3: Marshaller, t4: Marshaller, t5: Marshaller, t6: Marshaller, t7: Marshaller, t8: Marshaller, t9: Marshaller, t10: Marshaller): Marshaller; + export function union(t1: Marshaller, t2: Marshaller, t3: Marshaller, t4: Marshaller, t5: Marshaller, t6: Marshaller, t7: Marshaller, t8: Marshaller, t9: Marshaller, t10: Marshaller, t11: Marshaller): Marshaller; + export function union(t1: Marshaller, t2: Marshaller, t3: Marshaller, t4: Marshaller, t5: Marshaller, t6: Marshaller, t7: Marshaller, t8: Marshaller, t9: Marshaller, t10: Marshaller, t11: Marshaller, t12: Marshaller): Marshaller; export function union(...types: Marshaller[]): Marshaller { return { kind: "union" as const, types }; } From 82034cbea80a734edca924767ece20f75cf9d76f Mon Sep 17 00:00:00 2001 From: Yifan Gu Date: Fri, 19 Aug 2022 15:22:18 -0400 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a73bccc..4ee6ea6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zensors/sheriff", - "version": "2.1.1", + "version": "2.1.2", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": {