Fix sdk ts error
This commit is contained in:
parent
49c1e46fb8
commit
9f1caef009
|
@ -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");
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue