We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07f00d8 commit 407d08bCopy full SHA for 407d08b
1 file changed
packages/cloudflare/src/cli/build/utils/test-patch.ts
@@ -1,4 +1,4 @@
1
-import { patchCode, type RuleConfig } from "@opennextjs/aws/build/patch/astCodePatcher.js";
+import { patchCode } from "@opennextjs/aws/build/patch/astCodePatcher.js";
2
import { createPatch } from "diff";
3
4
/**
@@ -9,7 +9,7 @@ import { createPatch } from "diff";
9
* @param rule ASTgrep rule
10
* @returns diff in unified diff format
11
*/
12
-export function computePatchDiff(filename: string, src: string, rule: string | RuleConfig): string {
+export function computePatchDiff(filename: string, src: string, rule: string): string {
13
const dst = patchCode(src, rule);
14
return createPatch(filename, src, dst);
15
}
0 commit comments