From 9f1caef009ea7b00f55a8dc759ff293adb6295f1 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Fri, 22 Mar 2024 22:50:53 +0100 Subject: [PATCH] Fix sdk ts error --- src/server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index e919cce..a8ad7e0 100644 --- a/src/server.ts +++ b/src/server.ts @@ -67,8 +67,7 @@ const start = async () => { const removeDeclare = (text: string): string => { const lines = text.split("\n"); - const startDeclareLine = - lines.findIndex((line) => line === "declare module 'payload' {") ?? 0; + const startDeclareLine = lines.findIndex((line) => line.startsWith("declare module")) ?? 0; return lines.slice(0, startDeclareLine).join("\n"); };