Skip to content

Commit 71da8d3

Browse files
committed
fix: type errors
1 parent 02a5de1 commit 71da8d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/typescript-plugin/src/language-service/rename.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function decorateRename(
2525
position,
2626
findInStrings,
2727
findInComments,
28+
// @ts-expect-error overload shenanigans
2829
providePrefixAndSuffixTextForRename
2930
);
3031
if (!renameLocations) {

packages/typescript-plugin/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function offsetOfGeneratedComponentExport(snapshot: SvelteSnapshot) {
191191

192192
export function gatherDescendants<T extends ts.Node>(
193193
node: ts.Node,
194-
predicate: NodePredicate | NodeTypePredicate<T>,
194+
predicate: NodeTypePredicate<T>,
195195
dest: T[] = []
196196
) {
197197
if (predicate(node)) {

0 commit comments

Comments
 (0)