From 85f6ffbed8f3e1a77c531954460a7c29ec6701b1 Mon Sep 17 00:00:00 2001 From: Dave Jeffery Date: Mon, 4 Nov 2024 22:24:13 +0000 Subject: [PATCH] fix: `certType` typings --- src/client/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/client/index.ts b/src/client/index.ts index 802b079..7abbc19 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -14,7 +14,15 @@ export async function getSecret(secretName: string): Promise { return response.data; } -export async function getCertBase64(certType: string): Promise { +export async function getCertBase64( + certType: + | "mac" + | "windows" + | "macInstaller" + | "masDevelopment" + | "masDistribution" + | "masInstaller", +): Promise { const response = await axios.post("http://localhost:3000/getCert", { certType, });