Fix sdk ts error

This commit is contained in:
DrMint 2024-03-22 22:50:53 +01:00
parent 49c1e46fb8
commit 9f1caef009
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ const start = async () => {
const removeDeclare = (text: string): string => { const removeDeclare = (text: string): string => {
const lines = text.split("\n"); const lines = text.split("\n");
const startDeclareLine = const startDeclareLine = lines.findIndex((line) => line.startsWith("declare module")) ?? 0;
lines.findIndex((line) => line === "declare module 'payload' {") ?? 0;
return lines.slice(0, startDeclareLine).join("\n"); return lines.slice(0, startDeclareLine).join("\n");
}; };