Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Jun 21, 2023
1 parent 02a5de1 commit 71da8d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/typescript-plugin/src/language-service/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function decorateRename(
position,
findInStrings,
findInComments,
// @ts-expect-error overload shenanigans
providePrefixAndSuffixTextForRename
);
if (!renameLocations) {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-plugin/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function offsetOfGeneratedComponentExport(snapshot: SvelteSnapshot) {

export function gatherDescendants<T extends ts.Node>(
node: ts.Node,
predicate: NodePredicate | NodeTypePredicate<T>,
predicate: NodeTypePredicate<T>,
dest: T[] = []
) {
if (predicate(node)) {
Expand Down

0 comments on commit 71da8d3

Please sign in to comment.