Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 11, 2023
1 parent 3849bfc commit 5f6b078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/migrate/migrations/sveltekit-2/migrate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'node:fs';
import { Project, Node, SyntaxKind, FunctionDeclaration, VariableDeclaration } from 'ts-morph';
import { Project, Node, SyntaxKind } from 'ts-morph';
import { log_migration, log_on_ts_modification, update_pkg } from '../../utils.js';
import path from 'node:path';

Expand Down Expand Up @@ -172,7 +172,7 @@ function add_cookie_note(file_path, source) {
}

const some_function = call.getFirstAncestor(
/** @returns {ancestor is FunctionDeclaration | VariableDeclaration} */
/** @returns {ancestor is import('ts-morph').FunctionDeclaration | import('ts-morph').VariableDeclaration} */
(ancestor) => {
// Check if this is inside a function
const fn = ancestor.asKind(SyntaxKind.FunctionDeclaration);
Expand Down

0 comments on commit 5f6b078

Please sign in to comment.