Skip to content

Commit 2edb82d

Browse files
committed
Fix types bug
1 parent c23489a commit 2edb82d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

transforms/ember-object/test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ function runTest(
125125
}
126126
}
127127

128-
function runTransform(
129-
input: string,
130-
testPath: string
131-
): string | null | undefined {
128+
function runTransform(input: string, testPath: string): string {
132129
return applyTransform(
133130
transform,
134131
// NOTE: This version of options unused in the transform

types/jscodeshift/dist/testUtils.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ declare module 'jscodeshift/dist/testUtils' {
66
transformOptions: Options,
77
fileInfo: FileInfo,
88
testOptions?: { parser: Parser }
9-
): string | null | undefined;
9+
): string;
1010
}

0 commit comments

Comments
 (0)