From 514a7f998aa40a55c6fab98f4fe602fe3cd293bc Mon Sep 17 00:00:00 2001 From: Samual Norman Date: Sat, 12 Feb 2022 16:42:37 +0000 Subject: [PATCH] relax `push()` options object to allow explicit `undefined` --- src/push.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/push.ts b/src/push.ts index e909959..96452bf 100644 --- a/src/push.ts +++ b/src/push.ts @@ -1,4 +1,4 @@ -import { countHackmudCharacters, DynamicMap, writeFilePersistent } from "@samual/lib" +import { countHackmudCharacters, DynamicMap, LaxPartial, writeFilePersistent } from "@samual/lib" import fs from "fs" import { basename as getBaseName, extname as getFileExtension, resolve as resolvePath } from "path" import { Info } from "." @@ -44,7 +44,7 @@ export async function push( onPush = () => {}, minify = true, mangleNames = false - }: Partial = {} + }: LaxPartial = {} ) { const scriptNamesByUser = new DynamicMap((_user: string) => new Set()) const wildScriptUsers = new Set() -- knotmirror 0.0.1